Skip to content

Commit

Permalink
chore: run demozap on stories
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Aug 15, 2022
1 parent f4ee017 commit 6a311a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions stories/EventParams/EventParams.demozap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const EventParams = () => {
});

const onMove = (onMoveParams: OnMoveParams) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { eventType: eventTypeCurrent, ...restCurrent } = onMoveParams;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { eventType: eventTypePrevious, ...restPrevious } = eventParams;
Expand All @@ -47,16 +48,16 @@ const EventParams = () => {
}

if (!selectedEvents.trackOnMove) {
setEventParams({
setEventParams((prevEventParams) => ({
...prevEventParams,
...restCurrent,
eventType: eventTypePrevious,
});
}));
return;
}

setEventParams({
...restCurrent,
eventType: eventTypeCurrent,
eventType: onMoveParams.eventType,
});
};

Expand Down

0 comments on commit 6a311a7

Please sign in to comment.