Don't gray out on "Support/tip unlock" or "Abandon Claim" failures.

#4379
This commit is contained in:
infiinte-persistence 2020-06-13 14:11:12 +02:00 committed by Sean Yesmunt
parent 22f272d53e
commit c197a1f230

View file

@ -38,7 +38,7 @@ class TxoListItem extends React.PureComponent<Props, State> {
if (tip && type === TXO.SUPPORT) {
return (
<Button
disabled={abandonState === ABANDON_STATES.DONE || abandonState === ABANDON_STATES.ERROR}
disabled={abandonState === ABANDON_STATES.DONE}
button="secondary"
icon={ICONS.UNLOCK}
onClick={this.abandonClaim}
@ -49,7 +49,7 @@ class TxoListItem extends React.PureComponent<Props, State> {
const abandonTitle = type === TXO.SUPPORT ? 'Abandon Support' : 'Abandon Claim';
return (
<Button
disabled={abandonState === ABANDON_STATES.DONE || abandonState === ABANDON_STATES.ERROR}
disabled={abandonState === ABANDON_STATES.DONE}
button="secondary"
icon={ICONS.DELETE}
onClick={this.abandonClaim}