diff --git a/lib/account/pages/account_page.dart b/lib/account/pages/account_page.dart index ad3d6d7c4..bc5a3503d 100644 --- a/lib/account/pages/account_page.dart +++ b/lib/account/pages/account_page.dart @@ -41,14 +41,18 @@ class _AccountPageState extends State with AutomaticKeepAliveClient }, ), ], - child: (authState.isLoggedIn) - ? UserPage( - userId: accountState.personView?.person.id, - isAccountUser: true, - selectedUserOption: selectedUserOption, - savedToggle: savedToggle, - ) - : const AccountPlaceholder(), + child: BlocBuilder( + builder: (context, state) { + if (authState.isLoggedIn != true) return const AccountPlaceholder(); + + return UserPage( + userId: accountState.personView?.person.id, + isAccountUser: true, + selectedUserOption: selectedUserOption, + savedToggle: savedToggle, + ); + }, + ), ); }