Skip to content

Commit

Permalink
Merge pull request #160 from tonkeeper/fix/emoji-migration
Browse files Browse the repository at this point in the history
fix: add fallback emoji
  • Loading branch information
KuznetsovNikita authored Aug 2, 2024
2 parents a0f6a53 + 919d92b commit fb6e630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/entries/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export interface DeprecatedWalletState {
auth?: DeprecatedAuthState;

name?: string;
emoji: string;
emoji?: string;

revision: number;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/service/accountsStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ async function migrateToAccountsState(storage: IStorage): Promise<AccountsState
}

const name = w.name || 'Account ' + (index + 1);
const emoji = w.emoji;
const emoji = w.emoji || getFallbackAccountEmoji(pk);

const tonWallet: TonWalletStandard = {
id: w.active.rawAddress,
Expand Down

0 comments on commit fb6e630

Please sign in to comment.