From eedde57b9caff20e1e7d25b43fcb8785e23b3e11 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 27 Jun 2021 14:47:48 +0530 Subject: Fixed DisplayItem and now really big decimal numbers don't show up --- src/components/Display/SummaryDisplay.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/Display/SummaryDisplay.tsx') diff --git a/src/components/Display/SummaryDisplay.tsx b/src/components/Display/SummaryDisplay.tsx index 9488836..22f2e52 100644 --- a/src/components/Display/SummaryDisplay.tsx +++ b/src/components/Display/SummaryDisplay.tsx @@ -85,14 +85,14 @@ const SummaryDisplay: React.FC = (props) => { {summary.TotalDiscount !== 0.00 && After Discount - {summary.TotalPriceAfterDiscount} + {(summary.TotalPriceAfterDiscount).toFixed(2)} (-{summary.TotalDiscount}) } After Tax - {summary.TotalRawPrice + summary.TotalGST} + {(summary.TotalRawPrice + summary.TotalGST).toFixed(2)} (+{summary.TotalGST}) @@ -105,7 +105,7 @@ const SummaryDisplay: React.FC = (props) => { Grand Total - {summary.TotalRawPrice + (summary.TotalGST - summary.TotalDiscount)} + {Math.round(summary.TotalRawPrice + (summary.TotalGST - summary.TotalDiscount))} -- cgit v1.2.3