From ab712f11baa3ac02f97b55a2196df68acc7e18df Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 15 Oct 2026 02:35:10 +0200 Subject: [PATCH] fix: say why an event couldn't be saved instead of failing silently --- src/components/calendar/EventModal.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/calendar/EventModal.tsx b/src/components/calendar/EventModal.tsx index f32ffa69..8c22a022 100644 --- a/src/components/calendar/EventModal.tsx +++ b/src/components/calendar/EventModal.tsx @@ -9,6 +9,7 @@ import { StyleSheet, Switch, Platform, + Alert as NativeAlert, } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import DateTimePicker from '@react-native-community/datetimepicker'; @@ -364,6 +365,12 @@ export function EventModal({ sendSchedulingMessages: attendees.length > 0 && sendInvitations, }); onClose(); + } catch (err) { + // The editor stays open with everything typed, and says why. + NativeAlert.alert( + t('calendar.notifications.event_error', 'Failed to save event'), + err instanceof Error ? err.message : undefined, + ); } finally { setSaving(false); }