From cc89f67e0c61729581aa6ad60005557e8ddfe3ae Mon Sep 17 00:00:00 2001 From: milesthedisch Date: Tue, 25 Oct 2022 03:57:31 -0500 Subject: [PATCH] Fix linting key jsx issue --- src/components/UserDialog/index.tsx | 104 ++++++++++++++-------------- 1 file changed, 51 insertions(+), 53 deletions(-) diff --git a/src/components/UserDialog/index.tsx b/src/components/UserDialog/index.tsx index 7c64e88..f1485d1 100644 --- a/src/components/UserDialog/index.tsx +++ b/src/components/UserDialog/index.tsx @@ -233,50 +233,10 @@ function UserDialog(props: SimpleDialogProps) { {props.selectedUser?.totalUnits ? Object.entries(props.selectedUser.totalUnits) - .reverse() - .map((tu) => { - return ( - - - - Current Units - - - - {tu[1]?.toString() || 0} - - - - ); - }) - : ""} - {Array.isArray(productionUnitPrice) - ? productionUnitPrice.map((p) => { + .reverse() + .map((tu, i) => { return ( - + - Live Price + Current Units - {p.price?.toString()} + {tu[1]?.toString() || 0} ); }) : ""} + {Array.isArray(productionUnitPrice) + ? productionUnitPrice.map((p, i) => { + return ( + + + + Live Price + + + + {p.price?.toString()} + + + + ); + }) + : ""} Fee @@ -327,12 +327,10 @@ function UserDialog(props: SimpleDialogProps) {