Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(HW626): empty erc20 asset list #2049

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/models/tokens.ts
Original file line number Diff line number Diff line change
@@ -213,6 +213,11 @@ class TokensStore implements MobXStore<IToken> {
const _tokens = {} as Record<HaqqEthereumAddress, IToken[]>;
const _data = {} as Record<HaqqEthereumAddress, IToken>;

wallets.forEach(wallet => {
_tokens[AddressUtils.toEth(wallet.cosmosAddress)] = [
this.generateNativeToken(wallet),
];
});
for await (const t of updates.tokens) {
try {
const isPositive = new Balance(t.value).isPositive();
@@ -274,7 +279,6 @@ class TokensStore implements MobXStore<IToken> {
);
}
}

runInAction(() => {
this.tokens = _tokens;
this.data = {

Unchanged files with check annotations Beta

if (!this.current) {
// Use system language or English as default if user doesn't select another one
let current = this.getDeviceLanguage();
if (!supportedTranslationsMap[current]) current = AppLanguage.en;

Check warning on line 19 in src/models/language.ts

GitHub Actions / build_and_test

Expected { after 'if' condition
this.current = current;
}