Skip to content

Commit

Permalink
Display bridging before checking sanctions
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 27, 2024
1 parent 04b5959 commit 368d903
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/wrappers/SanctionWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ export function _SanctionWrapper({
const { safeAddress } = getSafeInfo()
const wallet = getWallet()

const { data: isSafeAddressBlocked } = isSanctioned(safeAddress || skipToken)
const { data: isWalletAddressBlocked } = isSanctioned(wallet?.address || skipToken)

if (isSafeAddressBlocked === undefined || isWalletAddressBlocked === undefined) {
return null
}
const { data: isSafeAddressBlocked = false } = isSanctioned(safeAddress || skipToken)
const { data: isWalletAddressBlocked = false } = isSanctioned(wallet?.address || skipToken)

const blockedAddress = getKeyWithTrueValue({
[safeAddress]: !!isSafeAddressBlocked,
Expand Down

0 comments on commit 368d903

Please sign in to comment.