From 5f7a02278507f23994a0ca2b5a4d7f4f743ba9ef Mon Sep 17 00:00:00 2001 From: Jordan Kee Date: Tue, 25 Jul 2023 16:17:56 +0800 Subject: [PATCH] Typo --- .../sado-connect/src/components/SelectWalletModal/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sado-connect/src/components/SelectWalletModal/index.tsx b/packages/sado-connect/src/components/SelectWalletModal/index.tsx index e092ce86..cf992b09 100644 --- a/packages/sado-connect/src/components/SelectWalletModal/index.tsx +++ b/packages/sado-connect/src/components/SelectWalletModal/index.tsx @@ -27,7 +27,7 @@ export function SelectWalletModal({ updatePublicKey, openModal, updateFormat, - safeToSpend, + safeMode, } = useSadoContext(); const [errorMessage, setErrorMessage] = useState(""); const isChromium = window.chrome; @@ -48,7 +48,7 @@ export function SelectWalletModal({ // Unisat only returns one wallet by default const wallet = unisat[0]; const supportedFormats = ["bech32", "taproot"]; - if (safeToSpend && !supportedFormats.includes(wallet.format)) { + if (safeMode && !supportedFormats.includes(wallet.format)) { openModal(); throw Error( "Only Native Segwit (P2WPKH) and Taproot (P2TR) addresses are supported. Switch to a supported address and connect again."