migration to address book service
This commit is contained in:
@@ -19,6 +19,8 @@ class PaymentMethodsProvider extends GenericProvider<PaymentMethod> {
|
||||
if (recipients.currentObject != null) loadMethods(organizations, recipients.currentObject?.id);
|
||||
}
|
||||
|
||||
// TODO: current providers structure forces to use weird construction with in-place PaymentMethodsProviders
|
||||
// it would be better to load reipients together with their payment methods in RecipientsProvider
|
||||
Future<void> loadMethods(OrganizationsProvider organizations, String? recipientRef) async {
|
||||
_organizations = organizations;
|
||||
if (_organizations.isOrganizationSet && (recipientRef != null)) {
|
||||
|
||||
Reference in New Issue
Block a user