From 91535988ada6d28e41c385c3d0befb592256cbd3 Mon Sep 17 00:00:00 2001 From: Akseli Kolari Date: Tue, 16 Apr 2024 11:36:13 +0300 Subject: [PATCH] Fix bad format for helium price --- src/lib/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 2416542..0cd122a 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -73,7 +73,8 @@ export const mapGasToName = (gas?: AvailableGasses): string => { } }; -export const formatEurCentsToEur = (eurCents: number): number => eurCents / 100; +export const formatEurCentsToEur = (eurCents: number): number => + parseFloat((eurCents / 100).toFixed(3)); export const formatEurToEurCents = (eur: number): number => eur * 100; export const calculateGasConsumption = (