From 4dd07d69785a1302e1adacccf379b078f6f4d1fe Mon Sep 17 00:00:00 2001 From: Greg Nazario Date: Wed, 25 Sep 2024 15:58:48 -0700 Subject: [PATCH] [coins] Change v1 & v2 to Coin and Fungible Asset --- src/pages/Account/Components/CoinsTable.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/Account/Components/CoinsTable.tsx b/src/pages/Account/Components/CoinsTable.tsx index a7872b6e..7f176189 100644 --- a/src/pages/Account/Components/CoinsTable.tsx +++ b/src/pages/Account/Components/CoinsTable.tsx @@ -77,6 +77,15 @@ export function CoinsTable({ {coins.map( ({name, amount, decimals, symbol, assetType, assetVersion}, i) => { + let friendlyType = assetType; + switch (assetType) { + case "v1": + friendlyType = "Coin"; + break; + case "v2": + friendlyType = "Fungible Asset"; + break; + } return ( @@ -86,7 +95,7 @@ export function CoinsTable({ symbol={symbol} /> - + ); },