Browse Source

fix(neon): import of removed initialAccount

Signed-off-by: Nikolas Rimikis <rimikis.nikolas@gmail.com>
pull/497/head
Nikolas Rimikis 1 year ago
parent
commit
29f6330f11
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 11
      packages/neon/neon/lib/src/utils/global_options.dart

11
packages/neon/neon/lib/src/utils/global_options.dart

@ -92,14 +92,13 @@ class GlobalOptions extends OptionsCollection {
} }
void updateAccounts(final List<Account> accounts) { void updateAccounts(final List<Account> accounts) {
if (accounts.isEmpty) {
return;
}
initialAccount.values = { initialAccount.values = {
for (final account in accounts) ...{ for (final account in accounts) account.id: (final context) => account.humanReadableID,
account.id: (final context) => account.humanReadableID,
},
}; };
if (accounts.tryFind(initialAccount.value) == null) {
initialAccount.reset();
}
} }
Future updateDistributors(final List<String> distributors) async { Future updateDistributors(final List<String> distributors) async {

Loading…
Cancel
Save