undo accidental removal + minor code cleanup

This commit is contained in:
Matthew Fosse 2024-05-06 09:19:56 -07:00
parent 371cf5b4dc
commit ebfdceefe1
2 changed files with 1 additions and 1 deletions

View file

@ -1,6 +1,5 @@
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_local_authentication/flutter_local_authentication.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:mobx/mobx.dart';
import 'package:cake_wallet/view_model/auth_state.dart';

View file

@ -39,5 +39,6 @@ abstract class EditBackupPasswordViewModelBase with Store {
Future<void> save() async {
final key = generateStoreKeyFor(key: SecretStoreKey.backupPassword);
await writeSecureStorage(secureStorage, key: key, value: backupPassword);
secretStore.write(key: key, value: backupPassword);
}
}