diff --git a/src/app/auth/signin/page.tsx b/src/app/auth/signin/page.tsx index 8ad10f6..43f44a0 100644 --- a/src/app/auth/signin/page.tsx +++ b/src/app/auth/signin/page.tsx @@ -32,7 +32,7 @@ export default function SignInPage() { providerId: "authentik", callbackURL: "/", }); - } catch (_error) { + } catch { toast.error("Failed to sign in. Please try again."); } finally { setIsLoading(false); diff --git a/src/app/page.tsx b/src/app/page.tsx index 9ba797a..510720d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -182,10 +182,9 @@ export default function HomePage() { const persistAiEvents = async (data: CalendarEvent[]) => { for (const ev of data) { - const { id: _existingId, ...rest } = ev; - const newEvent = { + const newEvent: CalendarEvent = { + ...ev, id: nanoid(), - ...rest, createdAt: new Date().toISOString(), lastModified: new Date().toISOString(), }; diff --git a/src/components/ics-file-picker.tsx b/src/components/ics-file-picker.tsx index e1a6b32..675d844 100644 --- a/src/components/ics-file-picker.tsx +++ b/src/components/ics-file-picker.tsx @@ -47,7 +47,6 @@ export function IcsFilePicker({ accept=".ics" onChange={handleFileChange} className="hidden" - aria-hidden="true" />