From 56282ae59ac60a7349e605e6520fd08f46c8b9f2 Mon Sep 17 00:00:00 2001 From: Crazypkr1099 Date: Mon, 18 Sep 2023 18:35:09 -0400 Subject: [PATCH] Update packages/desktop-client/src/components/reports/graphs/net-worth-spreadsheet.tsx Co-authored-by: Matiss Janis Aboltins --- .../src/components/reports/graphs/net-worth-spreadsheet.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/reports/graphs/net-worth-spreadsheet.tsx b/packages/desktop-client/src/components/reports/graphs/net-worth-spreadsheet.tsx index 367f1ed31b8..4750d289f64 100644 --- a/packages/desktop-client/src/components/reports/graphs/net-worth-spreadsheet.tsx +++ b/packages/desktop-client/src/components/reports/graphs/net-worth-spreadsheet.tsx @@ -144,10 +144,10 @@ function recalculate(data, start, end) { arr.push({ x, y: integerToAmount(total), premadeLabel: label }); arr.forEach(item => { - if (item.y < lowestNetWorth || lowestNetWorth == null) { + if (item.y < lowestNetWorth || lowestNetWorth === null) { lowestNetWorth = item.y; } - if (item.y > highestNetWorth || highestNetWorth == null) { + if (item.y > highestNetWorth || highestNetWorth === null) { highestNetWorth = item.y; } });