From d18dfdec033805be5f515046d0a1c1970570c814 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 19 Nov 2021 10:52:30 +0100 Subject: [PATCH] fix(StatusAccountSelector): Adapt ui to data model changed --- ui/StatusQ/src/StatusQ/Controls/StatusAccountSelector.qml | 4 ++-- ui/StatusQ/src/StatusQ/Core/Utils/Utils.qml | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusAccountSelector.qml b/ui/StatusQ/src/StatusQ/Controls/StatusAccountSelector.qml index be5df6bff7..85557d6221 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusAccountSelector.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusAccountSelector.qml @@ -46,7 +46,7 @@ Item { if (showBalanceForAssetSymbol == "" || minRequiredAssetBalance == 0 || !assetFound) { return root.isValid } - root.isValid = assetFound.value >= minRequiredAssetBalance + root.isValid = assetFound.balance >= minRequiredAssetBalance return root.isValid } @@ -82,7 +82,7 @@ Item { if (!assetFound) { return } - txtAssetBalance.text = root.assetBalanceTextFn(assetFound.value) + txtAssetBalance.text = root.assetBalanceTextFn(assetFound.balance) txtAssetSymbol.text = " " + assetFound.symbol } diff --git a/ui/StatusQ/src/StatusQ/Core/Utils/Utils.qml b/ui/StatusQ/src/StatusQ/Core/Utils/Utils.qml index f2be9e6bf6..f82f2f9068 100644 --- a/ui/StatusQ/src/StatusQ/Core/Utils/Utils.qml +++ b/ui/StatusQ/src/StatusQ/Core/Utils/Utils.qml @@ -52,10 +52,9 @@ QtObject { return { name: assets.rowData(i, "name"), symbol, - value: assets.rowData(i, "value"), - fiatBalanceDisplay: assets.rowData(i, "fiatBalanceDisplay"), + balance: assets.rowData(i, "balance"), address: assets.rowData(i, "address"), - fiatBalance: assets.rowData(i, "fiatBalance") + currencyBalance: assets.rowData(i, "currencyBalance") } } }