diff --git a/src/components/MainWalletView.tsx b/src/components/MainWalletView.tsx index 4b636c31..efadf1d1 100644 --- a/src/components/MainWalletView.tsx +++ b/src/components/MainWalletView.tsx @@ -148,18 +148,29 @@ export default function MainWalletView({ wallet }: MainWalletViewProps) { + ) : !currentWalletInfo || isLoading ? ( + + + ) : ( - settingsDispatch({ showBalance: !settings.showBalance })} className="cursor-pointer"> - {!currentWalletInfo || isLoading ? ( - - ) : ( - - )} + { + if (!settings.showBalance) { + settingsDispatch({ unit: 'BTC', showBalance: true }) + } else if (settings.unit === 'BTC') { + settingsDispatch({ unit: 'sats', showBalance: true }) + } else { + settingsDispatch({ unit: 'BTC', showBalance: false }) + } + }} + > + )}