Skip to content

Commit

Permalink
fix(mobile): missing date 📅 for transactions (#15436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodonisko authored Nov 18, 2024
1 parent 3e81245 commit 83cb156
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit 83cb156

Please sign in to comment.