diff --git a/src/hooks/useInitXmtpClient.ts b/src/hooks/useInitXmtpClient.ts index b036a0cb..f2589954 100644 --- a/src/hooks/useInitXmtpClient.ts +++ b/src/hooks/useInitXmtpClient.ts @@ -182,7 +182,8 @@ const useInitXmtpClient = () => { } } - if (window.ethereum?.isMetaMask) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + if (!isAppEnvDemo() && window.ethereum?.isMetaMask) { // Snaps flow — TODO: move to SDK side after ironing out all edge cases. // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call const browserSupportSnaps = await Client.isSnapsReady();