mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-08 02:58:40 -06:00
Server actions return HTTP 200 with serverError field on failure. Frontend was only checking HTTP status, not the response body, causing success toasts to show when operations actually failed. Fixed handlers: - handleDeleteSurvey (survey-dropdown-menu.tsx) - handleLeaveOrganization (organization-actions.tsx) - handleDeleteMember (member-actions.tsx) - handleDeleteTeam (delete-team.tsx) - handleDeleteSegment (segment-settings.tsx) - performLanguageDeletion, handleSaveChanges (edit-language.tsx) - onSubmit, handleDeleteAction (ActionSettingsTab.tsx) - handleSaveSegment (targeting-card.tsx) Each now checks result?.serverError before showing success toast. Fixes #3302