···400400 }
401401}
402402403403-export function notificationToURL(
404404- payload: NotificationPayload,
405405-): string | undefined {
403403+export function notificationToURL(payload: NotificationPayload): string | null {
406404 switch (payload?.reason) {
407405 case 'like':
408406 case 'repost':
···433431 }
434432 case 'chat-message':
435433 // should be handled separately
436436- return undefined
434434+ return null
437435 case 'verified':
438436 case 'unverified':
439439- default:
440437 return '/notifications'
438438+ default:
439439+ // do nothing if we don't know what to do with it
440440+ return null
441441 }
442442}