Skip to content

Commit

Permalink
Fix WalletConnection alert
Browse files Browse the repository at this point in the history
There was a bug - the walletconnection alert did not show up second time if the
error message stays the same.

This commit fixes that.
  • Loading branch information
michalsmiarowski committed Aug 21, 2023
1 parent 3aca665 commit 50e901d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Navbar/WalletConnectionAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const WalletConnectionAlert: FC<{
const resetAlert = () => {
setHideAlert(true)
setAlertDescription("")
if (error) error.message = ""
}

if (hideAlert) {
Expand Down

0 comments on commit 50e901d

Please sign in to comment.