Skip to content

Commit

Permalink
fix(session-replay-browser): check for undefined since this might cat…
Browse files Browse the repository at this point in the history
…ch for 0
  • Loading branch information
lewgordon-amplitude committed Oct 9, 2024
1 parent a047fed commit 5915946
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class InMemoryEventsStore extends BaseEventsStore<number> {
let sequenceReturn: SendingSequencesReturn<number> | undefined;
if (this.shouldSplitEventsList(this.sequences[sessionId], event)) {
const sequenceId = await this.storeSendingEvents(sessionId, this.sequences[sessionId]);
if (sequenceId) {
if (sequenceId !== undefined) {
sequenceReturn = {
sequenceId,
events: [...this.sequences[sessionId]],
Expand Down

0 comments on commit 5915946

Please sign in to comment.