diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt index be28fd7aa..af77d49ad 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt @@ -41,7 +41,7 @@ fun AccountScreen( } is AccountState.LoggedIn -> { val accountViewModel: AccountViewModel = viewModel( - key = state.account.userProfile().pubkeyHex, + key = state.account.hashCode().toString(), factory = AccountViewModel.Factory(state.account, sharedPreferencesViewModel.sharedPrefs) ) @@ -49,7 +49,7 @@ fun AccountScreen( } is AccountState.LoggedInViewOnly -> { val accountViewModel: AccountViewModel = viewModel( - key = state.account.userProfile().pubkeyHex, + key = state.account.hashCode().toString(), factory = AccountViewModel.Factory(state.account, sharedPreferencesViewModel.sharedPrefs) )