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 24, 2021
1 parent 80b05c3 commit f8b574d
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 f8b574d

Please sign in to comment.