[WEB-1413] chore: update label creation toast error message. (#4572)

This commit is contained in:
Prateek Shourya 2024-05-24 13:56:20 +05:30 committed by GitHub
parent f5d95ba3a1
commit 4bb4609833
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -73,9 +73,9 @@ export const CreateLabelModal: React.FC<Props> = observer((props) => {
}) })
.catch((error) => { .catch((error) => {
setToast({ setToast({
title: "Oops!", title: "Error!",
type: TOAST_TYPE.ERROR, type: TOAST_TYPE.ERROR,
message: error?.error ?? "Error while adding the label", message: error?.detail ?? "Something went wrong. Please try again later.",
}); });
reset(formData); reset(formData);
}); });

View File

@ -63,9 +63,9 @@ export const CreateUpdateLabelInline = observer(
}) })
.catch((error) => { .catch((error) => {
setToast({ setToast({
title: "Oops!", title: "Error!",
type: TOAST_TYPE.ERROR, type: TOAST_TYPE.ERROR,
message: error?.error ?? "Error while adding the label", message: error?.detail ?? "Something went wrong. Please try again later.",
}); });
reset(formData); reset(formData);
}); });