From cbba9b3d6cf5d001d78d5a6c5fa76be9a843e791 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sat, 29 Aug 2020 16:44:57 +0800 Subject: [PATCH] Fix isInitialized when account is frozen (#362) --- token/js/client/token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token/js/client/token.js b/token/js/client/token.js index ebd20d2613d..8ac5c3743ab 100644 --- a/token/js/client/token.js +++ b/token/js/client/token.js @@ -559,7 +559,7 @@ export class Token { accountInfo.delegatedAmount = u64.fromBuffer(accountInfo.delegatedAmount); } - accountInfo.isInitialized = accountInfo.state === 1; + accountInfo.isInitialized = accountInfo.state !== 0; accountInfo.isFrozen = accountInfo.state === 2; if (accountInfo.isNativeOption === 1) {