Skip to content

Commit

Permalink
fixed some remaining requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
blurpesec committed Feb 11, 2022
1 parent cc80e93 commit d76407c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const RecentTransactionsListUI = ({
};
// We don't want the actual txReceipt to have a zero value transfer in it's arr of value transfers, but
// we DO want to display 0 ETH on a transaction in the RecentTransactionsList if the tx has no value transfers. Improves display in-app
if (displayValueTransfers.length == 0) {
if (displayValueTransfers.length === 0) {
displayValueTransfers = addBaseAssetValueTransfer(
displayValueTransfers,
from,
Expand Down
6 changes: 3 additions & 3 deletions src/services/Store/store/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const handleBaseAssetTransfer = (
fromAddr: TAddress,
baseAsset: Asset
): IFullTxHistoryValueTransfer[] =>
valueTransfers.length == 0 && !bigify(value).isZero()
valueTransfers.length === 0 && !bigify(value).isZero()
? addBaseAssetValueTransfer(valueTransfers, fromAddr, toAddr, value, baseAsset)
: valueTransfers;

Expand All @@ -188,11 +188,11 @@ export const handleIncExchangeTransaction = (
network: Network
): IFullTxHistoryValueTransfer[] =>
txTypeMetas[derivedTxType] &&
txTypeMetas[derivedTxType].type == 'EXCHANGE' &&
txTypeMetas[derivedTxType].type === 'EXCHANGE' &&
(
valueTransfers.filter((t) => accountsMap[generateDeterministicAddressUUID(network.id, t.to)]) ||
[]
).length == 0
).length === 0
? [
...valueTransfers,
{
Expand Down
2 changes: 1 addition & 1 deletion src/services/TxHistory/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const convertTxsToHashMap = (txs: ITxReceipt[], initialMap?: Record<strin
...acc,
[cur.hash.toLowerCase()]: initialMap ? { ...acc[cur.hash.toLowerCase()], ...cur } : cur
}),
initialMap || {}
initialMap ?? {}
);

export const deriveTxType = (
Expand Down

0 comments on commit d76407c

Please sign in to comment.