Save all notifs

This commit is contained in:
Ian Philips 2022-07-19 08:38:12 -06:00
parent bb71e27637
commit ef4fa841f3
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ const TOKEN_KINDS = ['refresh', 'id'] as const
type TokenKind = typeof TOKEN_KINDS[number] type TokenKind = typeof TOKEN_KINDS[number]
const getAuthCookieName = (kind: TokenKind) => { const getAuthCookieName = (kind: TokenKind) => {
const suffix = `${PROJECT_ID}_${kind}`.toUpperCase().replaceAll('-', '_') const suffix = `${PROJECT_ID}_${kind}`.toUpperCase()
return `FIREBASE_TOKEN_${suffix}` return `FIREBASE_TOKEN_${suffix}`
} }

View File

@ -101,7 +101,7 @@ export default function Notifications(props: { user: User }) {
cachedNotifications={localNotifications} cachedNotifications={localNotifications}
/> />
) : localNotifications && localNotifications.length > 0 ? ( ) : localNotifications && localNotifications.length > 0 ? (
<div> <div className={'min-h-[100vh]'}>
<RenderNotificationGroups <RenderNotificationGroups
notificationGroups={localNotificationGroups} notificationGroups={localNotificationGroups}
/> />
@ -182,7 +182,7 @@ function NotificationsList(props: {
const local = safeLocalStorage() const local = safeLocalStorage()
local?.setItem( local?.setItem(
'notification-groups', 'notification-groups',
JSON.stringify(maxNotificationsToShow) JSON.stringify(allGroupedNotifications)
) )
}, [allGroupedNotifications, page]) }, [allGroupedNotifications, page])