From 4bb4609833bc5f463644a3d35605ad92949f7e64 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 24 May 2024 13:56:20 +0530 Subject: [PATCH] [WEB-1413] chore: update label creation toast error message. (#4572) --- web/components/labels/create-label-modal.tsx | 4 ++-- web/components/labels/create-update-label-inline.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/components/labels/create-label-modal.tsx b/web/components/labels/create-label-modal.tsx index 0de255c8c..18bed7a3a 100644 --- a/web/components/labels/create-label-modal.tsx +++ b/web/components/labels/create-label-modal.tsx @@ -73,9 +73,9 @@ export const CreateLabelModal: React.FC = observer((props) => { }) .catch((error) => { setToast({ - title: "Oops!", + title: "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); }); diff --git a/web/components/labels/create-update-label-inline.tsx b/web/components/labels/create-update-label-inline.tsx index 2aa8851c9..280ae55d9 100644 --- a/web/components/labels/create-update-label-inline.tsx +++ b/web/components/labels/create-update-label-inline.tsx @@ -63,9 +63,9 @@ export const CreateUpdateLabelInline = observer( }) .catch((error) => { setToast({ - title: "Oops!", + title: "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); });