From 7fb6f1f01adf0f86f1c1935562434305a8c12edc Mon Sep 17 00:00:00 2001 From: Christophe <65168240+TheChristophe@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:18:26 +0100 Subject: [PATCH] fix: exclude 0 from truthyOrNone as it is a non-empty value --- components/utility.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/utility.tsx b/components/utility.tsx index 46c3c81..19922c1 100644 --- a/components/utility.tsx +++ b/components/utility.tsx @@ -8,7 +8,7 @@ import { type Benchmark } from '@eosc-perf/eosc-perf-client'; * @returns Either a div with gray None text or the original string. */ export const truthyOrNoneTag = (value: string | undefined | null, altText = 'None') => { - if (!value) { + if (!value && value !== 0) { return (