From cb014679007353ac03dde5ecfbe770c577356f21 Mon Sep 17 00:00:00 2001 From: Bilal Date: Tue, 6 Oct 2020 15:34:54 +0300 Subject: [PATCH] do not ask user for currency scale --- .../src/originalGangstaOnboarding/ChipSelection.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/client/src/originalGangstaOnboarding/ChipSelection.js b/client/src/originalGangstaOnboarding/ChipSelection.js index e503415..1bd167c 100644 --- a/client/src/originalGangstaOnboarding/ChipSelection.js +++ b/client/src/originalGangstaOnboarding/ChipSelection.js @@ -6,7 +6,6 @@ import {Button, Select, TextInput} from "react-materialize"; const ChipSelection = (props) => { const [chips, setChips] = useState([]); const [selectedChip, setSelectedChip] = useState('1'); - const [chipScale, setChipScale] = useState('2'); useEffect(() => { (async() => { @@ -26,7 +25,7 @@ const ChipSelection = (props) => { const chipsToOptions = chips.map( (chip, index) => ); const disableSubmit = () => { - return !((parseInt(selectedChip) > 0) && (parseInt(chipScale) > 0)); + return !(parseInt(selectedChip) > 0); } const handleSubmit = async () => { @@ -37,7 +36,7 @@ const ChipSelection = (props) => { chip_code: chipData.code, chip_symbol: chipData.symbol, chip_prefixed: chipData.prefixed, - chip_scale: parseInt(chipScale) + chip_scale: chipData.scale } try{ @@ -61,14 +60,6 @@ const ChipSelection = (props) => { { chipsToOptions } - setChipScale(e.target.value)} - /> -