Skip to content

Commit

Permalink
BUGFIX/HCMPRE-1869 : fixed IRS NAN issue (#2127)
Browse files Browse the repository at this point in the history
* BUGFIX/HCMPRE-1869 : fixed IRS NAN issue

* BUGFIX/HCMPRE-1869 : fixed IRS basis of number
  • Loading branch information
Bhavya-egov authored Jan 10, 2025
1 parent 0fc9f4e commit 47d09ea
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ export const cycleDataRemap=(data)=> {
}
} else {
// Round attr.value to the nearest integer
const roundedValue = Math.round(attr.value);

const roundedValue = typeof attr.value === "number" ? Math.round(attr.value) : attr.value;
if (type === "create") {
return `${projectType === "LLIN-mz" ? attributeCode : attributeCode.toLowerCase()}${getOperatorSymbol(attr?.operator?.code)}${roundedValue}`;
} else {
Expand Down

0 comments on commit 47d09ea

Please sign in to comment.