Skip to content

Commit

Permalink
fix: ui stuck on oading when wc error
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Dec 5, 2023
1 parent e952ade commit 8152ff7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/beacon-ui/src/ui/alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,6 @@ const openAlert = async (config: AlertConfig): Promise<string> => {
}

const handleClickWallet = async (id: string) => {
if (isLoading()) return

setIsLoading(true)
setShowMoreContent(false)
const wallet = walletList().find((wallet) => wallet.id === id)
Expand Down Expand Up @@ -791,7 +789,6 @@ const openAlert = async (config: AlertConfig): Promise<string> => {
}
>
<Wallets
disabled={isLoading()}
wallets={walletList().slice(-(walletList().length - (isMobile() ? 3 : 4)))}
isMobile={isMobile()}
onClickWallet={handleClickWallet}
Expand Down Expand Up @@ -891,7 +888,6 @@ const openAlert = async (config: AlertConfig): Promise<string> => {
}
>
<TopWallets
disabled={isLoading()}
wallets={isMobile() ? walletList().slice(0, 3) : walletList().slice(0, 4)}
isMobile={isMobile()}
onClickWallet={handleClickWallet}
Expand All @@ -915,7 +911,6 @@ const openAlert = async (config: AlertConfig): Promise<string> => {
extraContent={
currentInfo() !== 'top-wallets' || isMobile() ? undefined : (
<Wallets
disabled={isLoading()}
small
wallets={walletList().slice(-(walletList().length - 4))}
isMobile={isMobile()}
Expand Down

0 comments on commit 8152ff7

Please sign in to comment.