From 4d9d13873647b87058e4d8b949df4cb3b49ef275 Mon Sep 17 00:00:00 2001 From: Pierre Bertet Date: Thu, 10 Oct 2019 00:43:34 +0200 Subject: [PATCH] Voting: do not display the sync indicator with the empty state (#1020) The empty state also contains a sync indicator. --- apps/voting/app/src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/voting/app/src/App.js b/apps/voting/app/src/App.js index 5b3ce1bbaa..7fb1a61711 100644 --- a/apps/voting/app/src/App.js +++ b/apps/voting/app/src/App.js @@ -50,11 +50,10 @@ const App = React.memo(function App() { return ( - - {!votes.length && ( + {votes.length === 0 && (
)} - {!!votes.length && ( + {votes.length > 0 && ( +