Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in committed Feb 25, 2025
1 parent 70223f9 commit ad70f0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pages/ErrorPage/UpdateRequiredView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useSafeAreaInsets from '@hooks/useSafeAreaInsets';
import useStyleUtils from '@hooks/useStyleUtils';
import useThemeStyles from '@hooks/useThemeStyles';
import * as AppUpdate from '@libs/actions/AppUpdate';
import {updateApp} from '@userActions/AppUpdate';

function UpdateRequiredView() {
const insets = useSafeAreaInsets();
Expand Down Expand Up @@ -57,7 +57,7 @@ function UpdateRequiredView() {
<Button
success
large
onPress={() => AppUpdate.updateApp(isProduction)}
onPress={() => updateApp(isProduction)}
text={translate('common.update')}
style={styles.updateRequiredViewTextContainer}
/>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/LogInWithShortLivedAuthTokenPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Log from '@libs/Log';
import Navigation from '@libs/Navigation/Navigation';
import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types';
import type {PublicScreensParamList} from '@libs/Navigation/types';
import * as Session from '@userActions/Session';
import {setAccountError, signInWithShortLivedAuthToken, signInWithSupportAuthToken} from '@userActions/Session';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Route} from '@src/ROUTES';
Expand All @@ -25,7 +25,7 @@ function LogInWithShortLivedAuthTokenPage({route}: LogInWithShortLivedAuthTokenP
const token = shortLivedAuthToken || shortLivedToken;

if (!account?.isLoading && authTokenType === CONST.AUTH_TOKEN_TYPES.SUPPORT) {
Session.signInWithSupportAuthToken(shortLivedAuthToken);
signInWithSupportAuthToken(shortLivedAuthToken);
Navigation.isNavigationReady().then(() => {
// We must call goBack() to remove the /transition route from history
Navigation.goBack();
Expand All @@ -37,13 +37,13 @@ function LogInWithShortLivedAuthTokenPage({route}: LogInWithShortLivedAuthTokenP
// Try to authenticate using the shortLivedToken if we're not already trying to load the accounts
if (token && !account?.isLoading) {
Log.info('LogInWithShortLivedAuthTokenPage - Successfully received shortLivedAuthToken. Signing in...');
Session.signInWithShortLivedAuthToken(token);
signInWithShortLivedAuthToken(token);
return;
}

// If an error is returned as part of the route, ensure we set it in the onyxData for the account
if (error) {
Session.setAccountError(error);
setAccountError(error);
}

// For HybridApp we have separate logic to handle transitions.
Expand Down

0 comments on commit ad70f0c

Please sign in to comment.