From a09f0a0ca6dc68931137e12e276fc0698f3ebb40 Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Fri, 29 Mar 2024 20:13:39 +0100 Subject: [PATCH] More fixes --- src/app/page.tsx | 6 +++--- src/components/age.tsx | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 69c3ee9..a18ab64 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -42,10 +42,10 @@ export default function Home() { ingenuity - . Most of my projects are open-source, and if you are - interested, you can find all of my projects on my{" "} + . Some of my projects are open-source (FOSS), and if you are + interested, you can find them on my{" "} - git-server + self-hosted git-server {" "} or{" "} diff --git a/src/components/age.tsx b/src/components/age.tsx index 80c22f4..67b1bae 100644 --- a/src/components/age.tsx +++ b/src/components/age.tsx @@ -58,12 +58,18 @@ const FormatBigNumber: React.FC = ({ const formattedBase = base.toFixed(precision); const suffix = suffixes[exponent]; - return ( - - {formattedBase} - {suffix} - - ); + if (base) { + return ( + + {formattedBase} + {suffix} + + ); + } else { + return null; + } }; type AgeHCyclesDisplayProps = {