From e9ea42c636296e5be4ec38421a1610e4a9c13f7d Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Sun, 28 Jan 2024 20:46:38 +0100 Subject: [PATCH] =?UTF-8?q?Oprava=20varov=C3=A1n=C3=AD=20linteru?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/modals/PizzaCalculatorModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/modals/PizzaCalculatorModal.tsx b/client/src/components/modals/PizzaCalculatorModal.tsx index e66b120..d3e07df 100644 --- a/client/src/components/modals/PizzaCalculatorModal.tsx +++ b/client/src/components/modals/PizzaCalculatorModal.tsx @@ -130,7 +130,7 @@ export default function PizzaCalculatorModal({ isOpen, onClose }: Props) { {result?.pizza2?.pricePerM &&

Cena za m²: {Math.round(result.pizza2.pricePerM * 1000000) / 100}

} - {result?.choice && result?.ratio && result?.ratio > 0 && result?.diameterDiff != null &&

{result.choice}. pizza je zhruba o {Math.round(result.ratio * 1000) / 10}% výhodnější než {result.choice === 1 ? "2" : "1"}. pizza.

|| ''} + {(result?.choice && result?.ratio && result?.ratio > 0 && result?.diameterDiff != null &&

{result.choice}. pizza je zhruba o {Math.round(result.ratio * 1000) / 10}% výhodnější než {result.choice === 1 ? "2" : "1"}. pizza.

) || ''}