diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-24 07:29:10 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-30 07:57:23 +0800 |
commit | 870da2ab225f37ae5b566e16ef2ae83834b3abf2 (patch) | |
tree | e5b601c63d859cb2cad44f0965a4d23edc28baf1 /packages/website/ts/components/top_bar | |
parent | 6122840241a47119b046b639e326cfead1ea3e10 (diff) | |
download | dexon-sol-tools-870da2ab225f37ae5b566e16ef2ae83834b3abf2.tar.gz dexon-sol-tools-870da2ab225f37ae5b566e16ef2ae83834b3abf2.tar.zst dexon-sol-tools-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.tsx | 3 |
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'; |