Skip to content

Commit 8f8a04f

Browse files
rickstaaCopilot
andcommitted
fix: correctly handle null and undefined supply change values
Ensure the supplyChange check properly handles both null and undefined to avoid displaying misleading formatted values when data is unavailable. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f621cad commit 8f8a04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/RoundStatus/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ const Index = ({
442442
color: "white",
443443
}}
444444
>
445-
{supplyChangeData?.supplyChange !== null
445+
{supplyChangeData?.supplyChange != null
446446
? numbro(supplyChangeData?.supplyChange ?? 0).format({
447447
output: "percent",
448448
mantissa: 2,

0 commit comments

Comments
 (0)