Fixed mobile layout

This commit is contained in:
gltron committed 2024-02-18 14:42:50 +01:00
1 parent b2175ddafd
commit 2006ebf5cb
10 files changed
+220 -94

No files matched your search

+5 -1
View File
@@ -202,7 +202,11 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
accountFound.color = accountToSave.color;
accountFound.saving = accountToSave.saving;
} catch (e) {
accounts.add(accountToSave);
if (accounts.isEmpty) {
accounts = [accountToSave];
} else {
accounts.add(accountToSave);
}
}
await _metadataRepository.saveAccounts(accounts);