diff --git a/app/javascript/flavours/glitch/components/exit_animation_wrapper.tsx b/app/javascript/flavours/glitch/components/exit_animation_wrapper.tsx index dba7d3e92c..4339068565 100644 --- a/app/javascript/flavours/glitch/components/exit_animation_wrapper.tsx +++ b/app/javascript/flavours/glitch/components/exit_animation_wrapper.tsx @@ -26,7 +26,7 @@ export const ExitAnimationWrapper: React.FC<{ * Render prop that provides the nested component with the `delayedIsActive` flag */ children: (delayedIsActive: boolean) => React.ReactNode; -}> = ({ isActive = false, delayMs = 500, withEntryDelay, children }) => { +}> = ({ isActive, delayMs = 500, withEntryDelay, children }) => { const [delayedIsActive, setDelayedIsActive] = useState( isActive && !withEntryDelay, ); diff --git a/app/javascript/flavours/glitch/reducers/notification_groups.ts b/app/javascript/flavours/glitch/reducers/notification_groups.ts index d890c32f37..230b5a2de3 100644 --- a/app/javascript/flavours/glitch/reducers/notification_groups.ts +++ b/app/javascript/flavours/glitch/reducers/notification_groups.ts @@ -292,7 +292,7 @@ function shouldMarkNewNotificationsAsRead( function updateLastReadId( state: NotificationGroupsState, - group: NotificationGroup | undefined = undefined, + group?: NotificationGroup, ) { if (shouldMarkNewNotificationsAsRead(state)) { group = group ?? state.groups.find(isNotificationGroup);