Skip to content

Commit

Permalink
fix: call signOutAndRedirectToSignIn with no parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sangar-1028 committed Jan 23, 2024
1 parent f56f180 commit d766e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/sidebar/SignInButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ function SignInButton() {
<PressableWithoutFeedback
accessibilityLabel={translate('sidebarScreen.buttonMySettings')}
role={CONST.ROLE.BUTTON}
onPress={Session.signOutAndRedirectToSignIn}
onPress={() => Session.signOutAndRedirectToSignIn()}
>
<View style={styles.signInButtonAvatar}>
<Button
medium
success
text={translate('common.signIn')}
onPress={Session.signOutAndRedirectToSignIn}
onPress={() => Session.signOutAndRedirectToSignIn()}
/>
</View>
</PressableWithoutFeedback>
Expand Down

0 comments on commit d766e84

Please sign in to comment.