Skip to content

Commit

Permalink
fix: bitrise smoke tests broken due to opt in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed May 7, 2024
1 parent 94e35bc commit 3a57c34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/util/onboarding/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ export const shouldShowSmartTransactionsOptInModal = async (
chainId: string,
providerConfigRpcUrl: string | undefined,
) => {
// Check chain and RPC
// Check chain and RPC, undefined is the default RPC
if (
!(
chainId === NETWORKS_CHAIN_ID.MAINNET &&
providerConfigRpcUrl === undefined
)
) ||
process.env.IS_TEST === 'true'
) {
return false;
}
Expand Down

0 comments on commit 3a57c34

Please sign in to comment.