@ -29,6 +29,8 @@ class AccountSettingsPage extends StatelessWidget {
AppLocalizations.of(context).accountOptionsRemoveConfirm(account.client.humanReadableID),
)) {
bloc.removeAccount(account);
// ignore: use_build_context_synchronously
const HomeRoute().go(context);
}
},
tooltip: AppLocalizations.of(context).accountOptionsRemove,
@ -84,6 +84,8 @@ class _LoginPageState extends State<LoginPage> {
..addAccount(account)
..setActiveAccount(account);
} catch (e, s) {
debugPrint(e.toString());
debugPrint(s.toString());
@ -21,10 +21,6 @@ class AppRouter extends GoRouter {
return const LoginRoute().location;
if (state.location == const LoginRoute().location) {
return const HomeRoute().location;
return null;
routes: $appRoutes,