Skip to content

Commit 222a691

Browse files
committed
fix
1 parent 6a3f095 commit 222a691

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/cards/getCollateralUtxosCard.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ import {getAmountInHex, getUtxoFromHex} from '../../utils/cslTools'
66
const GetCollateralUtxosCard = ({api, wasm, onRawResponse, onResponse, onWaiting}) => {
77
const [getCollateralUtxosInput, setGetCollateralUtxosInput] = useState('2000000')
88

9-
const amountInHex = getAmountInHex(wasm, getCollateralUtxosInput)
10-
119
const getCollateralUtxosClick = () => {
10+
const amountInHex = getCollateralUtxosInput ? getAmountInHex(wasm, getCollateralUtxosInput) : undefined;
1211
onWaiting(true)
1312
api
1413
?.getCollateral(amountInHex)

0 commit comments

Comments
 (0)