User Card Content fixes and updates
This commit is contained in:
parent
0ad837846a
commit
fa8ecb1c39
3 changed files with 109 additions and 56 deletions
|
@ -27,6 +27,7 @@ export const defaultState = {
|
|||
maxId: 0,
|
||||
minId: Number.POSITIVE_INFINITY,
|
||||
data: [],
|
||||
idStore: {},
|
||||
error: false
|
||||
},
|
||||
favorites: new Set(),
|
||||
|
@ -307,6 +308,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
|
|||
}
|
||||
|
||||
state.notifications.data.push(result)
|
||||
state.notifications.idStore[notification.id] = result
|
||||
|
||||
if ('Notification' in window && window.Notification.permission === 'granted') {
|
||||
const title = action.user.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue