Skip to content

Commit 8040707

Browse files
authored
Merge pull request #48520 from bernhardoj/revert-47345-nikki-temp-website-default
Re-enable auto populate the website business from the user domain
2 parents 7d2a940 + 6c5125d commit 8040707

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libs/BankAccountUtils.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import {Str} from 'expensify-common';
12
import type {OnyxEntry} from 'react-native-onyx';
23
import type * as OnyxTypes from '@src/types/onyx';
34

4-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
55
function getDefaultCompanyWebsite(session: OnyxEntry<OnyxTypes.Session>, user: OnyxEntry<OnyxTypes.User>): string {
6-
// temporarily always return https:// to fix https://github.com/Expensify/App/issues/47227 until https://github.com/Expensify/App/issues/45278 is resolved.
7-
return 'https://';
6+
return user?.isFromPublicDomain ? 'https://' : `https://www.${Str.extractEmailDomain(session?.email ?? '')}`;
87
}
98

109
function getLastFourDigits(bankAccountNumber: string): string {

0 commit comments

Comments
 (0)