Add comment

This commit is contained in:
Eric Bailey
2023-12-08 12:35:01 -06:00
parent 9713a82e99
commit f83cc00a95
+2 -3
View File
@@ -38,9 +38,8 @@ function SwitchAccountCard({account}: {account: SessionAccount}) {
const onPressSignout = React.useCallback(() => {
track('Settings:SignOutButtonClicked')
closeAllActiveElements()
setTimeout(() => {
logout()
}, 0)
// needs to be in timeout or the modal re-opens
setTimeout(() => logout(), 0)
}, [track, logout, closeAllActiveElements])
const contents = (