diff --git a/webapp/channels/src/components/post_reminder_custom_time_picker_modal/post_reminder_custom_time_picker_modal.tsx b/webapp/channels/src/components/post_reminder_custom_time_picker_modal/post_reminder_custom_time_picker_modal.tsx index 51975a5d6b..d38de499fc 100644 --- a/webapp/channels/src/components/post_reminder_custom_time_picker_modal/post_reminder_custom_time_picker_modal.tsx +++ b/webapp/channels/src/components/post_reminder_custom_time_picker_modal/post_reminder_custom_time_picker_modal.tsx @@ -32,7 +32,8 @@ function PostReminderCustomTimePicker({userId, timezone, onExited, postId, actio const handleConfirm = useCallback((dateTime: Moment) => { actions.addPostReminder(userId, postId, toUTCUnix(dateTime.toDate())); - }, [actions, postId, userId]); + onExited(); + }, [actions, postId, userId, onExited]); return (