Skip to content

Commit

Permalink
Fix redeem button enabled logic
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Nov 22, 2024
1 parent 4326d8b commit 7e85369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/receive_payment/lnurl/lnurl_withdraw_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class LnUrlWithdrawPageState extends State<LnUrlWithdrawPage> {
: SingleButtonBottomBar(
stickToBottom: true,
text: texts.invoice_action_redeem,
enabled: _isFormEnabled || _isFixedAmount && errorMessage.isEmpty,
enabled: (!_isFixedAmount && _isFormEnabled) || (_isFixedAmount && errorMessage.isEmpty),
onPressed: () {
if (_formKey.currentState?.validate() ?? false) {
_withdraw();
Expand Down

0 comments on commit 7e85369

Please sign in to comment.