From 83cb156900ffc5b6704bb423dc9e83d1216d01e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Such=C3=BD?= Date: Mon, 18 Nov 2024 23:02:20 +0100 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20missing=20date=20=F0=9F=93=85=20?= =?UTF-8?q?for=20transactions=20(#15436)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notifications/src/components/TransactionNotification.tsx | 2 +- .../src/components/TransactionDetail/TransactionDetailData.tsx | 2 +- .../TransactionDetail/TransactionDetailInputsSheet.tsx | 2 +- .../TransactionsList/TransactionListItemContainer.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/suite-native/notifications/src/components/TransactionNotification.tsx b/suite-native/notifications/src/components/TransactionNotification.tsx index a789b586e4e..6f0be388f77 100644 --- a/suite-native/notifications/src/components/TransactionNotification.tsx +++ b/suite-native/notifications/src/components/TransactionNotification.tsx @@ -88,7 +88,7 @@ export const TransactionNotification = ({ ); const transactionTargetAddress = useSelector((state: TransactionsRootState) => - selectTransactionFirstTargetAddress(state, txid, accountKey ?? ''), + selectTransactionFirstTargetAddress(state, accountKey ?? '', txid), ); const handleRemoveNotification = () => dispatch(notificationsActions.close(notificationId)); diff --git a/suite-native/transactions/src/components/TransactionDetail/TransactionDetailData.tsx b/suite-native/transactions/src/components/TransactionDetail/TransactionDetailData.tsx index ee8c8b84155..6c3f008678a 100644 --- a/suite-native/transactions/src/components/TransactionDetail/TransactionDetailData.tsx +++ b/suite-native/transactions/src/components/TransactionDetail/TransactionDetailData.tsx @@ -40,7 +40,7 @@ export const TransactionDetailData = ({ const { applyStyle } = useNativeStyles(); const transactionBlockTime = useSelector((state: TransactionsRootState) => - selectTransactionBlockTimeById(state, transaction.txid, accountKey), + selectTransactionBlockTimeById(state, accountKey, transaction.txid), ); const isPhishingTransaction = useSelector( (state: TokenDefinitionsRootState & TransactionsRootState) => diff --git a/suite-native/transactions/src/components/TransactionDetail/TransactionDetailInputsSheet.tsx b/suite-native/transactions/src/components/TransactionDetail/TransactionDetailInputsSheet.tsx index c8ed7c07520..882de6bfbdf 100644 --- a/suite-native/transactions/src/components/TransactionDetail/TransactionDetailInputsSheet.tsx +++ b/suite-native/transactions/src/components/TransactionDetail/TransactionDetailInputsSheet.tsx @@ -67,7 +67,7 @@ export const TransactionDetailInputsSheet = ({ const { translate } = useTranslate(); const transactionTransfers = useSelector( (state: TransactionsRootState & TokenDefinitionsRootState) => - selectTransactionInputAndOutputTransfers(state, txid, accountKey), + selectTransactionInputAndOutputTransfers(state, accountKey, txid), ); if (G.isNull(transactionTransfers)) return null; diff --git a/suite-native/transactions/src/components/TransactionsList/TransactionListItemContainer.tsx b/suite-native/transactions/src/components/TransactionsList/TransactionListItemContainer.tsx index 471e24e913b..28858cf6cc3 100644 --- a/suite-native/transactions/src/components/TransactionsList/TransactionListItemContainer.tsx +++ b/suite-native/transactions/src/components/TransactionsList/TransactionListItemContainer.tsx @@ -149,7 +149,7 @@ export const TransactionListItemContainer = ({ const { DateTimeFormatter } = useFormatters(); const transactionBlockTime = useSelector((state: TransactionsRootState) => - selectTransactionBlockTimeById(state, txid, accountKey), + selectTransactionBlockTimeById(state, accountKey, txid), ); const isTransactionPending = useSelector((state: TransactionsRootState) =>