From 9af59bddfebc230916e078d9b8147761400069f8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 10 Sep 2019 21:43:46 -0400 Subject: [PATCH] Fixed: Cleanup InteractiveSearch.js logic Co-Authored-By: Mark McDowall --- .../InteractiveSearch/InteractiveSearch.js | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/frontend/src/InteractiveSearch/InteractiveSearch.js b/frontend/src/InteractiveSearch/InteractiveSearch.js index bc47e4e96..1581f2b69 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearch.js +++ b/frontend/src/InteractiveSearch/InteractiveSearch.js @@ -119,33 +119,35 @@ function InteractiveSearch(props) { { - isFetching && - + isFetching ? : null } { - !isFetching && !!error && + !isFetching && error ?
Unable to load results for this album search. Try again later -
+ : + null } { - !isFetching && isPopulated && !totalReleasesCount && + !isFetching && isPopulated && !totalReleasesCount ?
No results found -
+ : + null } { - !!totalReleasesCount && isPopulated && !items.length && + !!totalReleasesCount && isPopulated && !items.length ?
All results are hidden by the applied filter -
+ : + null } { - isPopulated && !!items.length && + isPopulated && !!items.length ? -
+ : + null } { - totalReleasesCount !== items.length && !!items.length && + totalReleasesCount !== items.length && !!items.length ?
Some results are hidden by the applied filter -
+ : + null } );