Skip to content

Commit 5ac993f

Browse files
committed
refactor: SwapComponent useEffect dependencies
1 parent 5dd8e9c commit 5ac993f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/Swap/Swap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const SwapComponent: FC<SwapProps> = ({
5757
} else if (stateWallet && !tonConnectInstance.wallet) {
5858
disconnect();
5959
}
60-
}, [setWallet, tonConnectInstance.wallet]);
60+
}, []);
6161

6262
const { initializeApp, receive_token, refetchBestRoute, swapModal } =
6363
useSwapStore();

0 commit comments

Comments
 (0)