diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-28 05:17:58 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-29 02:50:08 +0800 |
commit | 7ee37fb62af7014f8a2aae435458302887781be0 (patch) | |
tree | f21d4127954cd3b8ead16cb8233ab81e51976dcf /packages/website/ts/utils/utils.ts | |
parent | 2970e103db963b1ef37924c2724c5b1ca10e14fb (diff) | |
download | dexon-sol-tools-7ee37fb62af7014f8a2aae435458302887781be0.tar dexon-sol-tools-7ee37fb62af7014f8a2aae435458302887781be0.tar.gz dexon-sol-tools-7ee37fb62af7014f8a2aae435458302887781be0.tar.bz2 dexon-sol-tools-7ee37fb62af7014f8a2aae435458302887781be0.tar.lz dexon-sol-tools-7ee37fb62af7014f8a2aae435458302887781be0.tar.xz dexon-sol-tools-7ee37fb62af7014f8a2aae435458302887781be0.tar.zst dexon-sol-tools-7ee37fb62af7014f8a2aae435458302887781be0.zip |
Implement new locked and uninstalled states
Diffstat (limited to 'packages/website/ts/utils/utils.ts')
-rw-r--r-- | packages/website/ts/utils/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index 5a180fdca..726e1815f 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -201,7 +201,7 @@ export const utils = { return utils.getAddressBeginAndEnd(userAddress); case AccountState.Locked: return 'Please Unlock'; - case AccountState.Unconnected: + case AccountState.Disconnected: return 'Connect a Wallet'; default: return ''; @@ -223,7 +223,7 @@ export const utils = { } else if (isExternallyInjectedProvider) { return AccountState.Locked; } else { - return AccountState.Unconnected; + return AccountState.Disconnected; } }, hasUniqueNameAndSymbol(tokens: Token[], token: Token): boolean { |