Skip to content

Commit

Permalink
fix:change condition
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Oct 25, 2023
1 parent 55f7e5a commit bbd5783
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ const findCompletedOrderTx = (transactions: TransactionInfo[]): MappedRawOrder[]
const result: TxMetadataInfo = {}
receivedTransactions.forEach((receivedTx) => {
receivedTx.inputs.forEach((input) => {
if (
Boolean(input.id) &&
input?.id?.slice(0, -1) === sentTx?.id &&
receivedTx.metadata?.['674'] !== undefined
) {
if (Boolean(input.id) && input?.id?.slice(0, -1) === sentTx?.id && receivedTx.inputs.length > 1) {
result['id'] = sentTx?.id
result['date'] = receivedTx?.lastUpdatedAt
const metadata = parseOrderTxMetadata(sentTx?.metadata?.['674'])
Expand Down

0 comments on commit bbd5783

Please sign in to comment.