Rename logout to logoutEveryAccount

This commit is contained in:
Dan Abramov
2024-08-15 00:25:55 +01:00
parent b9975697e2
commit eded090ca8
10 changed files with 31 additions and 31 deletions
+3 -3
View File
@@ -77,7 +77,7 @@ function SettingsAccountCard({
const {_} = useLingui()
const t = useTheme()
const {currentAccount} = useSession()
const {logout} = useSessionApi()
const {logoutEveryAccount} = useSessionApi()
const {data: profile} = useProfileQuery({did: account.did})
const isCurrentAccount = account.did === currentAccount?.did
@@ -109,11 +109,11 @@ function SettingsAccountCard({
testID="signOutBtn"
onPress={() => {
if (isNative) {
logout('Settings')
logoutEveryAccount('Settings')
resetToTab('HomeTab')
} else {
navigate('Home').then(() => {
logout('Settings')
logoutEveryAccount('Settings')
})
}
}}