From 29660a13d4122a5e2d288836a8f426825d3106e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Fri, 27 Dec 2024 11:57:39 +0000 Subject: [PATCH] refactor: add 0x check --- .../lib/utils/migration/groupMigrationObjects.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/wallet-dashboard/lib/utils/migration/groupMigrationObjects.ts b/apps/wallet-dashboard/lib/utils/migration/groupMigrationObjects.ts index 17bfa5dbfff..91dc10737d0 100644 --- a/apps/wallet-dashboard/lib/utils/migration/groupMigrationObjects.ts +++ b/apps/wallet-dashboard/lib/utils/migration/groupMigrationObjects.ts @@ -222,7 +222,9 @@ async function extractNativeTokensFromObject( result.push({ name: tokenName, balance, - coinType: `0x${nativeTokenFields.name}`, + coinType: nativeTokenFields.name.startsWith('0x') + ? nativeTokenFields.name + : `0x${nativeTokenFields.name}`, unlockConditionTimestamp: expirationKey, commonObjectType: CommonMigrationObjectType.NativeToken, output: object,