From c6a3c0409f43bfd3bf194dbea7565d1962e73856 Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Wed, 19 Jun 2024 19:15:18 +0530 Subject: [PATCH] chore: handled estimation error when the input field is not empty (#4877) --- web/core/components/estimates/points/create.tsx | 9 ++++++++- web/core/components/estimates/points/update.tsx | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/web/core/components/estimates/points/create.tsx b/web/core/components/estimates/points/create.tsx index 981714b5f..9cd7d1e7c 100644 --- a/web/core/components/estimates/points/create.tsx +++ b/web/core/components/estimates/points/create.tsx @@ -166,7 +166,14 @@ export const EstimatePointCreate: FC = observer((props) => autoFocus /> {estimatePointError?.message && ( - + = 1 + ? `You have some unsaved changes, Please save them before clicking on done` + : estimatePointError?.message + } + position="bottom" + >
diff --git a/web/core/components/estimates/points/update.tsx b/web/core/components/estimates/points/update.tsx index c6d28ba10..b557a6658 100644 --- a/web/core/components/estimates/points/update.tsx +++ b/web/core/components/estimates/points/update.tsx @@ -175,7 +175,14 @@ export const EstimatePointUpdate: FC = observer((props) => /> {estimatePointError?.message && ( <> - + = 1 + ? `You have some unsaved changes, Please save them before clicking on done` + : estimatePointError?.message + } + position="bottom" + >