chore: handled estimation error when the input field is not empty (#4877)
This commit is contained in:
parent
d65d89be36
commit
c6a3c0409f
2 changed files with 16 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue