chore: handled estimation error when the input field is not empty (#4877)

This commit is contained in:
guru_sainath
2024-06-19 19:15:18 +05:30
committed by GitHub
parent d65d89be36
commit c6a3c0409f
2 changed files with 16 additions and 2 deletions

View File

@@ -166,7 +166,14 @@ export const EstimatePointCreate: FC<TEstimatePointCreate> = observer((props) =>
autoFocus
/>
{estimatePointError?.message && (
<Tooltip tooltipContent={estimatePointError?.message} position="bottom">
<Tooltip
tooltipContent={
(estimateInputValue || "")?.length >= 1
? `You have some unsaved changes, Please save them before clicking on done`
: estimatePointError?.message
}
position="bottom"
>
<div className="flex-shrink-0 w-3.5 h-3.5 overflow-hidden mr-3 relative flex justify-center items-center text-red-500">
<Info size={14} />
</div>

View File

@@ -175,7 +175,14 @@ export const EstimatePointUpdate: FC<TEstimatePointUpdate> = observer((props) =>
/>
{estimatePointError?.message && (
<>
<Tooltip tooltipContent={estimatePointError?.message} position="bottom">
<Tooltip
tooltipContent={
(estimateInputValue || "")?.length >= 1
? `You have some unsaved changes, Please save them before clicking on done`
: estimatePointError?.message
}
position="bottom"
>
<div className="flex-shrink-0 w-3.5 h-3.5 overflow-hidden mr-3 relative flex justify-center items-center text-red-500">
<Info size={14} />
</div>