Trying to fix some whack ass bugs
This commit is contained in:
@@ -51,7 +51,7 @@ const RootLayout = async ({
|
||||
{children}
|
||||
<NotificationsPermission />
|
||||
<LunchReminder />
|
||||
<Toaster richColors />
|
||||
<Toaster />
|
||||
</TVModeProvider>
|
||||
</ConvexClientProvider>
|
||||
</ThemeProvider>
|
||||
|
@@ -21,6 +21,7 @@ export const LunchReminder = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const schedule = () => {
|
||||
if (!lunchTime) return;
|
||||
const ms = nextOccurrenceMs(lunchTime);
|
||||
console.log('Ms = ', ms)
|
||||
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
||||
|
Reference in New Issue
Block a user