about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features
diff options
context:
space:
mode:
authorSunny Ripert <sunny@sunfox.org>2022-11-05 13:45:06 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-06 10:47:31 +0100
commit8368f4857c493364ebf55717bd76ab62188e286e (patch)
treedc06b50111c06b50893247eb945c65a6df7de070 /app/javascript/flavours/glitch/features
parent93ccb4a29e21fcdbc2df661ad0be94766f2ed403 (diff)
[Glitch] Fix JavaScript console warning when loading notifications
Port 887976814a2639a666896ae94b14c64e2834e26d to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features')
-rw-r--r--app/javascript/flavours/glitch/features/notifications/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/notifications/index.js b/app/javascript/flavours/glitch/features/notifications/index.js
index 67b155ced..fc42a4de4 100644
--- a/app/javascript/flavours/glitch/features/notifications/index.js
+++ b/app/javascript/flavours/glitch/features/notifications/index.js
@@ -64,7 +64,7 @@ const mapStateToProps = state => ({
   showFilterBar: state.getIn(['settings', 'notifications', 'quickFilter', 'show']),
   notifications: getNotifications(state),
   localSettings:  state.get('local_settings'),
-  isLoading: state.getIn(['notifications', 'isLoading'], true),
+  isLoading: state.getIn(['notifications', 'isLoading'], 0) > 0,
   isUnread: state.getIn(['notifications', 'unread']) > 0 || state.getIn(['notifications', 'pendingItems']).size > 0,
   hasMore: state.getIn(['notifications', 'hasMore']),
   numPending: state.getIn(['notifications', 'pendingItems'], ImmutableList()).size,