Skip to content

Commit

Permalink
Do not request snap in demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Mar 3, 2024
1 parent 7f6aa78 commit ddb3a9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useInitXmtpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ddb3a9e

Please sign in to comment.