From 9cad12c4298499d6a5ba3cbd7f42aa5f18f17bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Mon, 21 Jun 2021 18:59:30 +0100 Subject: [PATCH] refactor: rename prop --- new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js b/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js index 04b91993..1fbd83cc 100644 --- a/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js +++ b/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js @@ -21,7 +21,7 @@ const Cashbox = ({ labelClassName, applyColorVariant, applyFiatBalanceAlertsStyling, - removeInnerPercentage + omitInnerPercentage }) => { const classes = cashboxClasses({ percent, cashOut, applyColorVariant }) const threshold = 51 @@ -34,12 +34,12 @@ const Cashbox = ({ return (
- {!removeInnerPercentage && percent <= threshold && ( + {!omitInnerPercentage && percent <= threshold && ( {percent.toFixed(0)}% )}
- {!removeInnerPercentage && percent > threshold && ( + {!omitInnerPercentage && percent > threshold && ( {percent.toFixed(0)}% )}