Skip to content

Commit

Permalink
Merge pull request #48520 from bernhardoj/revert-47345-nikki-temp-web…
Browse files Browse the repository at this point in the history
…site-default

Re-enable auto populate the website business from the user domain
  • Loading branch information
NikkiWines authored Sep 4, 2024
2 parents 7d2a940 + 6c5125d commit 8040707
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libs/BankAccountUtils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {Str} from 'expensify-common';
import type {OnyxEntry} from 'react-native-onyx';
import type * as OnyxTypes from '@src/types/onyx';

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

function getLastFourDigits(bankAccountNumber: string): string {
Expand Down

0 comments on commit 8040707

Please sign in to comment.