Skip to content

Commit 2debfa2

Browse files
committed
refactor: Condition
1 parent 060cce8 commit 2debfa2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/web/src/state/wallet/updater.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,13 @@ export const WalletBalanceUpdater: React.FC = () => {
8989
case 'claim-liquid-staking':
9090
case 'place-limit-order':
9191
case 'other': {
92-
if (chainId !== NonEVMChainId.SOLANA && !isEvmPending) {
92+
if (chainId === NonEVMChainId.SOLANA) {
93+
if (!isSolanaPending) {
94+
refreshSolana()
95+
}
96+
} else if (!isEvmPending) {
9397
refreshEvm()
9498
}
95-
if (chainId === NonEVMChainId.SOLANA && !isSolanaPending) {
96-
refreshSolana()
97-
}
9899
break
99100
}
100101

0 commit comments

Comments
 (0)