Skip to content

Commit

Permalink
refactor(typescript): apply pull request suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Błażej Kustra <[email protected]>
  • Loading branch information
pac-guerreiro and blazejkustra authored Jan 12, 2024
1 parent 35c5d0f commit ee212ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ConciergePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ConciergePageProps = ConciergePageOnyxProps & StackScreenProps<AuthScreensP
*/
function ConciergePage({session}: ConciergePageProps) {
useFocusEffect(() => {
if (Object.hasOwn(session ?? {}, 'authToken')) {
if (session && 'authToken' in session) {
// Pop the concierge loading page before opening the concierge report.
Navigation.isNavigationReady().then(() => {
Navigation.goBack(ROUTES.HOME);
Expand Down

0 comments on commit ee212ba

Please sign in to comment.