From b76681bd12c23bca3e43508229abd40081beaa50 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 2 Oct 2023 21:57:35 +0200 Subject: [PATCH] feat: add type to vesting balances, and fix formatting error --- app/core/service.account.js | 1 + app/sections/accounts/account.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/core/service.account.js b/app/core/service.account.js index 43db8a3..16a3643 100644 --- a/app/core/service.account.js +++ b/app/core/service.account.js @@ -277,6 +277,7 @@ assetService.getAssetNameAndPrecision(value.balance.asset_id, function (returnData) { var vesting = { id: value.id, + type: value.balance_type, balance: utilities.formatBalance(value.balance.amount, returnData.precision), asset_id: value.balance.asset_id, asset_name: returnData.symbol diff --git a/app/sections/accounts/account.html b/app/sections/accounts/account.html index 6e47840..c45afc0 100644 --- a/app/sections/accounts/account.html +++ b/app/sections/accounts/account.html @@ -194,14 +194,16 @@ ID + Type {{v.id}} + {{v.type}} {{v.asset_name}} - {{v.balance | number}} + {{v.balance}}