fix: Fehler-Alert nach Push-Aktivierung korrekt awaiten

Stellt sicher, dass die Fehlermeldung angezeigt wird, bevor
promptPushAfterInviteCreated zurückkehrt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-31 13:47:36 +02:00
co-authored by Cursor
parent 8037b3b63e
commit ad4721e694
+1 -1
View File
@@ -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'))
}
}