From a0112f063e1afe3cba0d6e9e037a1c882bdfb556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Wed, 25 Sep 2024 18:59:06 +0200 Subject: [PATCH] fix(TransactionDelegate): fix `transactionType` - the `addressesEqual` was forgotten in the TransactionDelegate but it's referenced by `transactionType` function inside the store --- ui/app/AppLayouts/Wallet/stores/RootStore.qml | 4 ++++ ui/imports/shared/controls/TransactionDelegate.qml | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/app/AppLayouts/Wallet/stores/RootStore.qml b/ui/app/AppLayouts/Wallet/stores/RootStore.qml index 72d941609e..65211e3b3f 100644 --- a/ui/app/AppLayouts/Wallet/stores/RootStore.qml +++ b/ui/app/AppLayouts/Wallet/stores/RootStore.qml @@ -561,6 +561,10 @@ QtObject { return transaction.txType } + function addressesEqual(address1, address2) { + return address1.toUpperCase() === address2.toUpperCase() + } + // TODO: https://github.com/status-im/status-desktop/issues/15329 // Get DApp data from the backend function getDappDetails(chainId, contractAddress) { diff --git a/ui/imports/shared/controls/TransactionDelegate.qml b/ui/imports/shared/controls/TransactionDelegate.qml index 3c74e666cc..e7866e3e30 100644 --- a/ui/imports/shared/controls/TransactionDelegate.qml +++ b/ui/imports/shared/controls/TransactionDelegate.qml @@ -202,10 +202,6 @@ StatusListItem { property color animatedBgColor property int txType: walletRootStore.transactionType(root.modelData) - function addressesEqual(address1, address2) { - return address1.toUpperCase() == address2.toUpperCase() - } - readonly property var secondIconAsset: StatusAssetSettings { width: root.tokenIconAsset.width height: root.tokenIconAsset.height