aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/top_bar
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-03-24 07:29:10 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-03-30 07:57:23 +0800
commit870da2ab225f37ae5b566e16ef2ae83834b3abf2 (patch)
treee5b601c63d859cb2cad44f0965a4d23edc28baf1 /packages/website/ts/components/top_bar
parent6122840241a47119b046b639e326cfead1ea3e10 (diff)
downloaddexon-0x-contracts-870da2ab225f37ae5b566e16ef2ae83834b3abf2.tar.gz
dexon-0x-contracts-870da2ab225f37ae5b566e16ef2ae83834b3abf2.tar.zst
dexon-0x-contracts-870da2ab225f37ae5b566e16ef2ae83834b3abf2.zip
Implement wallet locked and uninstalled states
Diffstat (limited to 'packages/website/ts/components/top_bar')
-rw-r--r--packages/website/ts/components/top_bar/provider_display.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/components/top_bar/provider_display.tsx b/packages/website/ts/components/top_bar/provider_display.tsx
index 89c506d0e..221c34f8c 100644
--- a/packages/website/ts/components/top_bar/provider_display.tsx
+++ b/packages/website/ts/components/top_bar/provider_display.tsx
@@ -28,7 +28,8 @@ interface ProviderDisplayState {}
export class ProviderDisplay extends React.Component<ProviderDisplayProps, ProviderDisplayState> {
public render() {
const isAddressAvailable = !_.isEmpty(this.props.userAddress);
- const isExternallyInjectedProvider = ProviderType.Injected && this.props.injectedProviderName !== '0x Public';
+ const isExternallyInjectedProvider =
+ this.props.providerType === ProviderType.Injected && this.props.injectedProviderName !== '0x Public';
const displayAddress = isAddressAvailable
? utils.getAddressBeginAndEnd(this.props.userAddress)
: isExternallyInjectedProvider ? 'Account locked' : '0x0000...0000';