Skip to content

Commit 8b8b7ad

Browse files
author
Abinash Karmakar
committed
Add 'Cancel' option to logout confirmation popup
1 parent ff652a7 commit 8b8b7ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/screens/auth/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ export function logout() {
1414
export function handleLogout(logoutMutation: () => void) {
1515
const alert = popupStore.getState().alert
1616
alert('Log out', 'Are you sure you want to log out from this device?', [
17+
{ text: 'Cancel' },
1718
{
1819
text: 'Log out',
1920
onPress() {
2021
logoutMutation()
2122
alert('Please wait', 'Please wait while we log you out', [], true)
2223
},
2324
},
24-
{ text: 'Cancel' },
2525
])
2626
}

0 commit comments

Comments
 (0)