Skip to content

Commit

Permalink
Fixes panel notifications not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Sep 6, 2019
1 parent 132232b commit b86f874
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,15 @@ export const rewardsPanelReducer = (state: RewardsExtension.State | undefined, a
notifications
}

if (state.currentNotification === undefined && id) {
const found = list.find((notification: RewardsExtension.Notification) => {
if (!notification || !state) {
return false
}

return notification.id === state.currentNotification
})

if (id && (state.currentNotification === undefined || !found)) {
state.currentNotification = id
}

Expand Down

0 comments on commit b86f874

Please sign in to comment.