Skip to content

Commit

Permalink
Avoid showing double messages
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer committed May 20, 2021
1 parent c40d197 commit 048dd42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/browser/modules/Main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ const Main = React.memo(function Main(props: any) {
Connection to server lost. Reconnecting...
</WarningBanner>
</Render>
<Render if={past5Sec && !past10Sec}>
<Render
if={
props.connectionState === CONNECTING_STATE && past5Sec && !past10Sec
}
>
<NotAuthedBanner>Still connecting...</NotAuthedBanner>
</Render>
<Render if={past10Sec}>
Expand Down

0 comments on commit 048dd42

Please sign in to comment.