address-book-#16 #18
@@ -19,6 +19,8 @@ class PaymentMethodsProvider extends GenericProvider<PaymentMethod> {
|
|||||||
if (recipients.currentObject != null) loadMethods(organizations, recipients.currentObject?.id);
|
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 {
|
Future<void> loadMethods(OrganizationsProvider organizations, String? recipientRef) async {
|
||||||
_organizations = organizations;
|
_organizations = organizations;
|
||||||
if (_organizations.isOrganizationSet && (recipientRef != null)) {
|
if (_organizations.isOrganizationSet && (recipientRef != null)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user