Skip to content

Commit

Permalink
fix: disable logs in prod (#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu authored Nov 8, 2023
1 parent c3e0cb8 commit 86800bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/wallets/mpc/useMPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import useOnboard, { connectWallet, getConnectedWallet } from '@/hooks/wallets/u
import { useInitSocialWallet } from './useSocialWallet'
import { ONBOARD_MPC_MODULE_LABEL } from '@/services/mpc/SocialLoginModule'
import { isSocialWalletOptions, SOCIAL_WALLET_OPTIONS } from '@/services/mpc/config'
import { IS_PRODUCTION } from '@/config/constants'

const { getStore, setStore, useStore } = new ExternalStore<Web3AuthMPCCoreKit>()

Expand Down Expand Up @@ -46,7 +47,7 @@ export const useInitMPC = () => {
web3AuthNetwork: WEB3AUTH_NETWORK.MAINNET,
baseUrl: `${window.location.origin}/`,
uxMode: 'popup',
enableLogging: true,
enableLogging: !IS_PRODUCTION,
chainConfig,
manualSync: true,
hashedFactorNonce: 'safe-global-sfa-nonce',
Expand Down

0 comments on commit 86800bd

Please sign in to comment.