We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9993df6 commit a1420a2Copy full SHA for a1420a2
src/components/WalletButton.tsx
@@ -1,6 +1,5 @@
1
import { useState } from "react";
2
import {
3
- Alert,
4
Button,
5
Layout,
6
Modal,
@@ -28,6 +27,7 @@ export const WalletButton = () => {
28
27
29
const showTooltip = () => {
30
void balance.updateBalance();
+ if (balance.error) return;
31
setIsTooltipVisible(true);
32
};
33
@@ -87,15 +87,9 @@ export const WalletButton = () => {
87
/>
88
}
89
>
90
- {!balance.error ? (
91
- <span style={{ opacity: balance.isLoading ? 0.6 : 1 }}>
92
- {xlm} XLM
93
- </span>
94
- ) : (
95
- <Alert variant="error" placement="inline">
96
- {balance.error?.message}
97
- </Alert>
98
- )}
+ <span style={{ opacity: balance.isLoading ? 0.6 : 1 }}>
+ {xlm} XLM
+ </span>
99
</Tooltip>
100
</div>
101
</Layout.Content>
0 commit comments