Skip to content

Commit

Permalink
fix: CheckWallet sdk only if safe is also loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Dec 10, 2024
1 parent 922400c commit b4e8342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/CheckWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const CheckWallet = ({
const sdk = useSafeSDK()
const isProposer = useIsWalletProposer()

const { safe } = useSafeInfo()
const { safe, safeLoaded } = useSafeInfo()

const isNestedSafeOwner = useIsNestedSafeOwner()

Expand All @@ -54,7 +54,7 @@ const CheckWallet = ({
if (!wallet) {
return Message.WalletNotConnected
}
if (!sdk) {
if (!sdk && safeLoaded) {
return Message.SDKNotInitialized
}

Expand Down

0 comments on commit b4e8342

Please sign in to comment.