Skip to content

Commit

Permalink
Merge pull request #1553 from multiversx/MEX-662-trading-activity-for…
Browse files Browse the repository at this point in the history
…-tokens-and-pairs

[MEX-662] fix undefined timestamp in case of no events
  • Loading branch information
claudiulataretu authored Jan 30, 2025
2 parents 6b5e5e4 + 5be2b96 commit 39a66ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ export class AnalyticsComputeService {
}, [] as RawElasticEventType[])
.slice(0, 10),
);
latestTimestamp = filteredEvents[0].timestamp;
if (events.length < size) {
break;
}
latestTimestamp = filteredEvents[0].timestamp;
}

return filteredEvents.map((event) => {
Expand Down

0 comments on commit 39a66ce

Please sign in to comment.