(
{ type }: Pick<Notification, 'type'>,
isSubscribed: boolean,
)
| 116 | |
| 117 | /** Push subscribers already got the squad subscription, so it is hidden. */ |
| 118 | export const isNotificationVisible = ( |
| 119 | { type }: Pick<Notification, 'type'>, |
| 120 | isSubscribed: boolean, |
| 121 | ): boolean => |
| 122 | !(isSubscribed && type === NotificationType.SquadSubscribeNotification); |
| 123 | |
| 124 | export const latestNotificationsQueryKey = ['notifications', 'latest']; |
| 125 |
no outgoing calls
no test coverage detected