From 654c790c3df3ee857952a1023761f186bb9c777d Mon Sep 17 00:00:00 2001 From: Tom Schmidt Date: Fri, 9 Mar 2018 12:44:11 -0800 Subject: Fixed Parity detection --- packages/website/ts/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index b6a02f253..eaf1d43cc 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -315,7 +315,7 @@ export const utils = { parsedProviderName = 'METAMASK'; } else if (provider.constructor.name === 'EthereumProvider') { parsedProviderName = 'MIST'; - } else if (provider.constructor.name === 'o') { + } else if ((provider as any).isParity) { parsedProviderName = 'PARITY'; } return parsedProviderName; -- cgit v1.2.3