Skip to content

Commit 0884270

Browse files
authored
fix(sample): forced number conversion to avoid errors from reading th… (#731)
1 parent 591b017 commit 0884270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/grids/grid/finjs/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default function FinjsSample() {
121121
const rowData = gridRef.current.getRowData(cell.id.rowID);
122122
const isValueUp: boolean = trends.positive(rowData);
123123
const icon = isValueUp ? "trending_up" : "trending_down";
124-
const value = cell.value.toFixed(4);
124+
const value = parseFloat(cell.value).toFixed(4);
125125

126126
return (
127127
<div className={`finjs-icons ${isValueUp ? "positive" : "negative"}`}>

0 commit comments

Comments
 (0)