Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jordankzf committed Jul 25, 2023
1 parent 6c73433 commit 5f7a022
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function SelectWalletModal({
updatePublicKey,
openModal,
updateFormat,
safeToSpend,
safeMode,
} = useSadoContext();
const [errorMessage, setErrorMessage] = useState<string>("");
const isChromium = window.chrome;
Expand All @@ -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."
Expand Down

0 comments on commit 5f7a022

Please sign in to comment.