recipient saving
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:pshared/models/payment/methods/data.dart';
|
||||
import 'package:pshared/models/payment/type.dart';
|
||||
import 'package:pshared/models/recipient/recipient.dart';
|
||||
|
||||
@@ -31,9 +32,9 @@ class PaymentInfoSection extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final loc = AppLocalizations.of(context)!;
|
||||
final hasRecipient = recipient != null;
|
||||
final availableTypes = hasRecipient
|
||||
final MethodMap availableTypes = hasRecipient
|
||||
? pageSelector.getAvailablePaymentTypes()
|
||||
: {for (final type in PaymentType.values) type: type};
|
||||
: {for (final type in PaymentType.values) type: null};
|
||||
|
||||
if (hasRecipient && availableTypes.isEmpty) {
|
||||
return Text(loc.recipientNoPaymentDetails);
|
||||
|
||||
Reference in New Issue
Block a user