fix: issue activity estimate value bug fix (#2281)

* fix: issue activity estimate value bug fix

* fix: activity typo fix
This commit is contained in:
Anmol Singh Bhatia 2023-09-28 13:18:35 +05:30 committed by GitHub
parent 34af666b5f
commit 60a69e28e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 3 deletions

View file

@ -32,7 +32,9 @@ const useEstimateOption = (estimateKey?: number | null) => {
);
const estimateValue: any =
(estimateKey && estimateDetails?.points?.find((e) => e.key === estimateKey)?.value) ?? "None";
estimateKey || estimateKey === 0
? estimateDetails?.points?.find((e) => e.key === estimateKey)?.value
: "None";
return {
isEstimateActive: projectDetails?.estimate ? true : false,