Fix form submission toasts

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 16:48:03 +00:00
parent 67a96ca94b
commit 700c29c910
2 changed files with 248 additions and 6 deletions

View File

@@ -261,12 +261,7 @@ export function ParkForm({ onSubmit, onCancel, initialData, isEditing = false }:
_compositeSubmission: (tempNewOperator || tempNewPropertyOwner) ? submissionContent : undefined
});
toast({
title: isEditing ? "Park Updated" : "Park Created",
description: isEditing
? "The park information has been updated successfully."
: "The new park has been created successfully."
});
// Parent component handles success feedback
} catch (error: unknown) {
const errorMessage = getErrorMessage(error);
handleError(error, {