From cec0d690c787c62759a4aa682ea8fa8dddb4a37d Mon Sep 17 00:00:00 2001 From: William O'Beirne Date: Fri, 16 Feb 2018 13:47:28 -0500 Subject: [PATCH] Hide refresh button and its spinner on initial balance fetch (#1108) --- .../components/BalanceSidebar/AccountInfo.tsx | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/common/components/BalanceSidebar/AccountInfo.tsx b/common/components/BalanceSidebar/AccountInfo.tsx index c5f791ec..8c2c5a88 100644 --- a/common/components/BalanceSidebar/AccountInfo.tsx +++ b/common/components/BalanceSidebar/AccountInfo.tsx @@ -134,17 +134,21 @@ class AccountInfo extends React.Component { symbol={balance.wei ? network.name : null} /> - {balance.isPending ? ( - - ) : ( - !isOffline && ( - - ) + {balance.wei && ( + + {balance.isPending ? ( + + ) : ( + !isOffline && ( + + ) + )} + )}