From cd6a065f87ce8aa99e9498f80311674b56dc7830 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Fri, 4 Nov 2022 12:05:04 -0500 Subject: [PATCH] Move receipt total below --- pages/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index ae7966e..09f47a5 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -70,6 +70,10 @@ const Home: NextPage = () => { /> + {receipt.map((itemAtom, i) => { + return ; + })} +
Receipt Total: @@ -80,9 +84,7 @@ const Home: NextPage = () => {
- {receipt.map((itemAtom, i) => { - return ; - })} +
{calculated.totalMap.size > 0 && ( <>