Skip to content

Commit

Permalink
fix: cannot read truc of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
neolectron committed Jul 26, 2023
1 parent 892bf20 commit 2d1b01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/machines/toilet.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const toiletMachine = hotspotMachine
.withConfig({
actions: {
updatePersons: (context) => {
context.persons.forEach((p) => p.send('triggerPee'));
context.persons.forEach((p) => p?.send('triggerPee'));
return context;
},
},
Expand Down

0 comments on commit 2d1b01d

Please sign in to comment.