From c5b746535a21897d47c47a51903885332f816e4b Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 28 Jul 2021 19:51:29 +0200 Subject: [PATCH] should be fine but keeps crashing --- ui/component/walletFiatBalance/view.jsx | 51 ++++--------------------- ui/page/wallet/view.jsx | 2 +- 2 files changed, 8 insertions(+), 45 deletions(-) diff --git a/ui/component/walletFiatBalance/view.jsx b/ui/component/walletFiatBalance/view.jsx index 0c4a958d9..d0f9968f1 100644 --- a/ui/component/walletFiatBalance/view.jsx +++ b/ui/component/walletFiatBalance/view.jsx @@ -70,16 +70,12 @@ const WalletBalance = (props: Props) => { }, [doFetchUtxoCounts, balance, detailsExpanded]); return ( - 313 USD} + <>{1 == 1 && {accountDetails && accountDetails.total_received_unpaid/100} USD} subtitle={ - totalLocked > 0 ? ( This is your remaining balance that can still be withdrawn to your bank account - ) : ( - {__('Your total balance.')} - ) } actions={ <> @@ -88,7 +84,7 @@ const WalletBalance = (props: Props) => {

- $100 Withdrawn + ${accountDetails && accountDetails.total_paid_out/100 } Withdrawn

+ + {/* view more section */} {detailsExpanded && (
@@ -136,49 +134,14 @@ const WalletBalance = (props: Props) => {
)} - - {/* @if TARGET='app' */} - {hasSynced ? ( -

- {__('A backup of your wallet is synced with lbry.tv.')} - -

- ) : ( -

- {__('Your wallet is not currently synced with lbry.tv. You are in control of backing up your wallet.')} - -

- )} - {/* @endif */} +
- {(otherCount > WALLET_CONSOLIDATE_UTXOS || consolidateIsPending || consolidatingUtxos) && ( -

- doUtxoConsolidate()} - disabled={operationPending} - label={ - consolidateIsPending || consolidatingUtxos ? __('Consolidating...') : __('Consolidate Now') - } - /> - ), - help: , - }} - > - Your wallet has a lot of change lying around. Consolidating will speed up your transactions. This could - take some time. %now%%help% - -

- )} } - /> + />} ); }; diff --git a/ui/page/wallet/view.jsx b/ui/page/wallet/view.jsx index 6cb21ec41..82076f149 100644 --- a/ui/page/wallet/view.jsx +++ b/ui/page/wallet/view.jsx @@ -111,7 +111,7 @@ const WalletPage = (props: Props) => {
- + {/**/}
)}