diff --git a/ui/component/notification/view.jsx b/ui/component/notification/view.jsx index e641ea15d..cca1ffcbe 100644 --- a/ui/component/notification/view.jsx +++ b/ui/component/notification/view.jsx @@ -1,6 +1,12 @@ // @flow -import { NOTIFICATION_CREATOR_SUBSCRIBER, NOTIFICATION_COMMENT, NOTIFICATION_REPLY } from 'constants/notifications'; +import { + NOTIFICATION_CREATOR_SUBSCRIBER, + NOTIFICATION_COMMENT, + NOTIFICATION_REPLY, + DAILY_WATCH_AVAILABLE, +} from 'constants/notifications'; +import * as PAGES from 'constants/pages'; import * as ICONS from 'constants/icons'; import React from 'react'; import classnames from 'classnames'; @@ -25,7 +31,10 @@ export default function Notification(props: Props) { const { notification, menuButton = false, doSeeNotifications } = props; const { push } = useHistory(); const { notification_rule, notification_parameters, is_seen, id } = notification; - const notificationTarget = notification && notification_parameters.device.target; + const notificationTarget = + notification && notification_rule === DAILY_WATCH_AVAILABLE + ? `/$/${PAGES.CHANNELS_FOLLOWING}` + : notification_parameters.device.target; const isCommentNotification = notification_rule === NOTIFICATION_COMMENT || notification_rule === NOTIFICATION_REPLY; const commentText = isCommentNotification && notification_parameters.dynamic.comment; let notificationLink = formatLbryUrlForWeb(notificationTarget); diff --git a/ui/constants/notifications.js b/ui/constants/notifications.js index cf2e48cd7..60555f464 100644 --- a/ui/constants/notifications.js +++ b/ui/constants/notifications.js @@ -1,3 +1,4 @@ export const NOTIFICATION_CREATOR_SUBSCRIBER = 'creator_subscriber'; export const NOTIFICATION_COMMENT = 'comment'; export const NOTIFICATION_REPLY = 'comment-reply'; +export const DAILY_WATCH_AVAILABLE = 'daily_watch_available';