From a60b8c036e376d9bef2e9815e2ab50bacf844327 Mon Sep 17 00:00:00 2001 From: Shine Li Date: Tue, 10 Dec 2024 15:03:42 +1100 Subject: [PATCH] lint --- .../sdk-sample-app/src/components/PassportMethods.tsx | 6 +++--- .../sdk-sample-app/src/context/ImmutableProvider.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/passport/sdk-sample-app/src/components/PassportMethods.tsx b/packages/passport/sdk-sample-app/src/components/PassportMethods.tsx index 29be9c87aa..b986a977e7 100644 --- a/packages/passport/sdk-sample-app/src/components/PassportMethods.tsx +++ b/packages/passport/sdk-sample-app/src/components/PassportMethods.tsx @@ -36,8 +36,8 @@ function PassportMethods() { console.error('zkEvmProvider not found'); return; } - zkEvmProvider.request({method: "im_addSessionActivity", params: [clientId] }); - } + zkEvmProvider.request({ method: 'im_addSessionActivity', params: [clientId] }); + }; const handleLinkWalletSubmit = useCallback(async ( type: string, @@ -96,7 +96,7 @@ function PassportMethods() { > Link Wallet - diff --git a/packages/passport/sdk-sample-app/src/context/ImmutableProvider.tsx b/packages/passport/sdk-sample-app/src/context/ImmutableProvider.tsx index 3b5251424b..7b64a025de 100644 --- a/packages/passport/sdk-sample-app/src/context/ImmutableProvider.tsx +++ b/packages/passport/sdk-sample-app/src/context/ImmutableProvider.tsx @@ -195,7 +195,7 @@ const ImmutableContext = createContext<{ passportClient: new Passport(getPassportConfig(EnvironmentNames.DEV)), environment: EnvironmentNames.DEV, blockchainData: new BlockchainData(getBlockchainDataConfig(EnvironmentNames.DEV)), - clientId: '' + clientId: '', }); export function ImmutableProvider({ @@ -231,7 +231,7 @@ export function ImmutableProvider({ setBlockchainData(new BlockchainData(getBlockchainDataConfig(environment))); }, [environment]); - const clientId = getPassportConfig(environment).clientId; + const { clientId } = getPassportConfig(environment); const providerValues = useMemo(() => ({ sdkClient,