diff --git a/frontend/pshared/lib/provider/recipient/pmethods.dart b/frontend/pshared/lib/provider/recipient/pmethods.dart index a98bdcf..03f0f70 100644 --- a/frontend/pshared/lib/provider/recipient/pmethods.dart +++ b/frontend/pshared/lib/provider/recipient/pmethods.dart @@ -19,6 +19,8 @@ class PaymentMethodsProvider extends GenericProvider { 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 loadMethods(OrganizationsProvider organizations, String? recipientRef) async { _organizations = organizations; if (_organizations.isOrganizationSet && (recipientRef != null)) {