We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19827d0 commit 4119c66Copy full SHA for 4119c66
1 file changed
arena.js
@@ -550,8 +550,10 @@ function tick(){
550
let participant = solidWorm.getParticipant();
551
participant.payload.response = null;
552
participant.postMessage(arenaClone).then(response => {
553
- participant.payload.response = response.message.data;
554
- updateDirection(participant);
+ if(response.message){
+ participant.payload.response = response.message.data;
555
+ updateDirection(participant);
556
+ }
557
}).finally(()=>participant.payload.wormUpdated());
558
_participantPromises.push(new Promise(resolve => participant.payload.wormUpdated = resolve));
559
});
0 commit comments