aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/instant/src/util/env.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/util/env.ts b/packages/instant/src/util/env.ts
index 0f0b472b2..aedf4f5d6 100644
--- a/packages/instant/src/util/env.ts
+++ b/packages/instant/src/util/env.ts
@@ -44,7 +44,7 @@ export const envUtil = {
getProviderType(provider: Provider): ProviderType | undefined {
if (provider.constructor.name === 'EthereumProvider') {
return ProviderType.Mist;
- } else if (provider.constructor.name === 'TrustWeb3Provider') {
+ } else if ((provider as any).isTrust) {
return ProviderType.TrustWallet;
} else if ((provider as any).isParity) {
return ProviderType.Parity;