From ad4721e694c89e181e3191be3a6afd55529b4688 Mon Sep 17 00:00:00 2001 From: elpatron Date: Sun, 31 May 2026 13:47:36 +0200 Subject: [PATCH] fix: Fehler-Alert nach Push-Aktivierung korrekt awaiten MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stellt sicher, dass die Fehlermeldung angezeigt wird, bevor promptPushAfterInviteCreated zurückkehrt. Co-authored-by: Cursor --- client/src/components/SettingsForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/SettingsForm.tsx b/client/src/components/SettingsForm.tsx index 6405c79..3a23669 100644 --- a/client/src/components/SettingsForm.tsx +++ b/client/src/components/SettingsForm.tsx @@ -190,7 +190,7 @@ export default function SettingsForm({ logbookId, onLogbookRestored }: SettingsF trackPlausibleEvent(PlausibleEvents.PUSH_ENABLED) } catch (err: unknown) { console.error('Failed to enable push after invite:', err) - showAlert(err instanceof Error ? err.message : t('profile.push_error')) + await showAlert(err instanceof Error ? err.message : t('profile.push_error')) } }