File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/components/SwapButton Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- import { useTonWallet } from "@tonconnect/ui-react" ;
2
1
import { ImSpinner8 } from "react-icons/im" ;
3
2
import { useThemeStore } from "../../store/theme.store" ;
4
3
import { IoClose } from "react-icons/io5" ;
5
4
import { ModalState , useSwapStore } from "../../store/swap.store" ;
6
5
import "./WaitingForWallet.scss" ;
7
6
import { motion } from "framer-motion" ;
7
+ import { useOptionsStore } from "../../store/options.store" ;
8
8
9
9
const WaitingForWallet = ( ) => {
10
- const wallet = useTonWallet ( ) ;
10
+ const { tonConnectInstance } = useOptionsStore ( ) ;
11
11
const { setModalState } = useSwapStore ( ) ;
12
12
13
13
const handleCloseModal = ( ) => {
@@ -28,7 +28,8 @@ const WaitingForWallet = () => {
28
28
< ImSpinner8 className = "animate-spin icon" />
29
29
</ div >
30
30
< div className = "loading-text" >
31
- Confirm the transaction in { wallet ?. device . appName }
31
+ Confirm the transaction in{ " " }
32
+ { tonConnectInstance ?. wallet ?. device . appName ?? "your Wallet" }
32
33
</ div >
33
34
< p > It will only take a moment</ p >
34
35
</ motion . div >
You can’t perform that action at this time.
0 commit comments