Skip to content

Commit

Permalink
fix userlogin
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodebrute committed Oct 2, 2024
1 parent 3329f6c commit c22556d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function DeeplinkRedirectLoadingIndicator({openLinkInBrowser}: DeeplinkRedirectL
const {translate} = useLocalize();
const theme = useTheme();
const styles = useThemeStyles();
const [email] = useOnyx(ONYXKEYS.SESSION, {selector: (session) => session?.email ?? ''});
const [currentUserLogin] = useOnyx(ONYXKEYS.SESSION, {selector: (session) => session?.email});
return (
<View style={styles.deeplinkWrapperContainer}>
<View style={styles.deeplinkWrapperMessage}>
Expand All @@ -34,7 +34,7 @@ function DeeplinkRedirectLoadingIndicator({openLinkInBrowser}: DeeplinkRedirectL
</View>
<Text style={[styles.textHeadline, styles.textXXLarge]}>{translate('deeplinkWrapper.launching')}</Text>
<View style={[styles.mt2, styles.textAlignCenter]}>
<Text>{translate('deeplinkWrapper.loggedInAs', {email})}</Text>
<Text>{translate('deeplinkWrapper.loggedInAs', {email: currentUserLogin ?? ''})}</Text>
<Text style={[styles.textAlignCenter]}>
{translate('deeplinkWrapper.doNotSeePrompt')} <TextLink onPress={() => openLinkInBrowser(true)}>{translate('deeplinkWrapper.tryAgain')}</TextLink>
{translate('deeplinkWrapper.or')} <TextLink onPress={() => Navigation.goBack()}>{translate('deeplinkWrapper.continueInWeb')}</TextLink>.
Expand Down
3 changes: 1 addition & 2 deletions src/languages/params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {OnyxEntry} from 'react-native-onyx';
import type {OnyxInputOrEntry, ReportAction} from '@src/types/onyx';
import type {DelegateRole} from '@src/types/onyx/Account';
import type {AllConnectionName, ConnectionName, PolicyConnectionSyncStage, SageIntacctMappingName, Unit} from '@src/types/onyx/Policy';
Expand Down Expand Up @@ -26,7 +25,7 @@ type ZipCodeExampleFormatParams = {
};

type LoggedInAsParams = {
email: OnyxEntry<string>;
email: string;
};

type SignUpNewFaceCodeParams = {
Expand Down

0 comments on commit c22556d

Please sign in to comment.