fix: add default values for zeroConf and zeroConfLimit on the initial setup

This commit is contained in:
José Oliveira 2021-11-11 23:05:51 +00:00
parent 293fc06d4b
commit a83df77a25
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ const Blockcypher = ({ addData }) => {
{selected === 'disable' && ( {selected === 'disable' && (
<Button <Button
size="lg" size="lg"
onClick={() => addData({ zeroConf: 'all-zero-conf' })} onClick={() => addData({ zeroConf: 'none', zeroConfLimit: 0 })}
className={classes.button}> className={classes.button}>
Continue Continue
</Button> </Button>

View file

@ -38,7 +38,7 @@ const ChooseCoin = ({ addData }) => {
if (!schema.isValidSync(it)) return setError(true) if (!schema.isValidSync(it)) return setError(true)
if (it.coin !== 'BTC') { if (it.coin !== 'BTC') {
return addData({ coin: it.coin, zeroConf: 'all-zero-conf' }) return addData({ coin: it.coin, zeroConf: 'none', zeroConfLimit: 0 })
} }
addData(it) addData(it)