diff --git a/www/js/splash/notifScheduler.ts b/www/js/splash/notifScheduler.ts index e41430529..906d0712b 100644 --- a/www/js/splash/notifScheduler.ts +++ b/www/js/splash/notifScheduler.ts @@ -226,8 +226,15 @@ const initReminderPrefs = (reminderSchemes) => { // reminder_time_of_day: string; // } -export const getReminderPrefs = async (reminderSchemes): Promise => { - const user = (await getUser()) as any; +interface User { + reminder_assignment: string; + reminder_join_date: string; + reminder_time_of_day: string; +} + +export const getReminderPrefs = async (reminderSchemes): Promise => { + const userPromise = getUser(); + const user = (await userPromise) as User; if (user?.reminder_assignment && user?.reminder_join_date && user?.reminder_time_of_day) { console.log('User already has reminder prefs, returning them', user); return user;