From 1251262e22911db109414be17172e9d24202a2e8 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 14 Mar 2021 18:21:21 -0300 Subject: [PATCH] status -> wallet_status on wallet_status call --- ui/component/splash/view.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/component/splash/view.jsx b/ui/component/splash/view.jsx index c69942b45..c48251a27 100644 --- a/ui/component/splash/view.jsx +++ b/ui/component/splash/view.jsx @@ -112,27 +112,27 @@ export default class SplashScreen extends React.PureComponent { Lbry.status().then((status) => { const sdkStatus = status; const { wallet } = status; - Lbry.wallet_status().then((status) => { + Lbry.wallet_status().then((walletStatus) => { if (sdkStatus.is_running && wallet && wallet.available_servers) { - if (status.is_locked) { + if (walletStatus.is_locked) { // Clear the error timeout, it might sit on this step for a while until someone enters their password if (this.timeout) { clearTimeout(this.timeout); } // Make sure there isn't another active modal (like INCOMPATIBLE_DAEMON) - this.updateStatusCallback(sdkStatus, status, true); + this.updateStatusCallback(sdkStatus, walletStatus, true); if (launchedModal === false && !modal) { this.setState({ launchedModal: true }, () => notifyUnlockWallet()); } } else { - this.updateStatusCallback(sdkStatus, status); + this.updateStatusCallback(sdkStatus, walletStatus); } - } else if (!sdkStatus.is_running && status.is_syncing) { + } else if (!sdkStatus.is_running && walletStatus.is_syncing) { // Clear the timeout if wallet is still syncing if (this.timeout) { clearTimeout(this.timeout); } - this.updateStatusCallback(sdkStatus, status); + this.updateStatusCallback(sdkStatus, walletStatus); } else if (this.state.waitingForWallet > MAX_WALLET_WAIT && launchedModal === false && !modal) { clearWalletServers(); doShowSnackBar( @@ -141,9 +141,9 @@ export default class SplashScreen extends React.PureComponent { ) ); this.setState({ waitingForWallet: 0 }); - this.updateStatusCallback(sdkStatus, status); + this.updateStatusCallback(sdkStatus, walletStatus); } else { - this.updateStatusCallback(sdkStatus, status); + this.updateStatusCallback(sdkStatus, walletStatus); } }); });