From 60c0f9e5aab01dae41792c63fc093c20127f5acd Mon Sep 17 00:00:00 2001 From: schmanu Date: Wed, 8 Nov 2023 15:26:38 +0100 Subject: [PATCH] fix: disable logs in prod --- src/hooks/wallets/mpc/useMPC.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/wallets/mpc/useMPC.ts b/src/hooks/wallets/mpc/useMPC.ts index 2fc22fe65e..b0b9d8544a 100644 --- a/src/hooks/wallets/mpc/useMPC.ts +++ b/src/hooks/wallets/mpc/useMPC.ts @@ -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() @@ -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',