From e4e1903a2af8d9d41d7b923962bdf92c2dbd0b97 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Fri, 29 Nov 2024 13:27:29 -0600 Subject: [PATCH] fix: round caliber --- .../Tankopedia/HeroSection/components/Options/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx index 2a899be3f..4a294217e 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx @@ -178,7 +178,10 @@ export function Options({ thicknessRange, canvas }: OptionsProps) { } secondaryDiscriminator={ - {gun.gun_type!.value.base.shells[0].caliber}mm + {Math.round( + gun.gun_type!.value.base.shells[0].caliber, + )} + mm } />