Skip to content

Commit

Permalink
fix serverside rendering of notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
huumn committed May 28, 2024
1 parent 94cce91 commit 033270b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/client-notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Types = {
PollVote: toType('POLL_VOTE')
}

const ClientNotificationContext = createContext()
const ClientNotificationContext = createContext({ notifications: [], notify: () => {}, unnotify: () => {} })

export function ClientNotificationProvider ({ children }) {
const [notifications, setNotifications] = useState([])
Expand Down

0 comments on commit 033270b

Please sign in to comment.