FIX: Dont allow zero invoices to enable create invoice button

This commit is contained in:
Marcos Rodriguez 2019-11-11 04:23:29 -05:00 committed by Overtorment
parent 285bc7c323
commit ef1772c419

View file

@ -159,7 +159,7 @@ export default class LNDCreateInvoice extends Component {
{this.state.isLoading ? ( {this.state.isLoading ? (
<ActivityIndicator /> <ActivityIndicator />
) : ( ) : (
<BlueButton disabled={!this.state.amount > 0} onPress={() => this.createInvoice()} title={loc.send.details.create} /> <BlueButton disabled={!(this.state.amount > 0)} onPress={() => this.createInvoice()} title={loc.send.details.create} />
)} )}
</View> </View>
); );