Skip to content

Commit

Permalink
wallet-ext: hide dapp connection status when not connected
Browse files Browse the repository at this point in the history
* showing `not connected` without a further explanations in a tooltip seems to be confusing
* also when the active tab is the extension itself (in expanded mode) it doesn't seem correct
  • Loading branch information
pchrysochoidis committed Sep 19, 2022
1 parent 021980e commit 4412040
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wallet/src/ui/app/shared/dapp-status/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ function DappStatus() {
setDisconnecting(false);
}
}, [disconnecting, isConnected, activeOriginUrl, dispatch]);
if (!isConnected) {
return null;
}
return (
<div className={st.wrapper} ref={wrapperRef}>
<Component
Expand Down

0 comments on commit 4412040

Please sign in to comment.