Skip to content

Commit

Permalink
Revert "[CP Staging] Temporarily returns "https://" as the default we…
Browse files Browse the repository at this point in the history
…bsite"
  • Loading branch information
bernhardoj authored Sep 4, 2024
1 parent 3e5da78 commit 6c5125d
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 6c5125d

Please sign in to comment.