Skip to content

Commit

Permalink
fix bug in sample JS code
Browse files Browse the repository at this point in the history
  • Loading branch information
pdaoust committed Dec 16, 2024
1 parent 93bc576 commit b14c432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/resources/upgrade/upgrade-holochain-0.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ For JavaScript front ends and Tryorama tests, the signal handler callback for `A
+client.on("signal", (signal: Signal) => {
+ if (!(SignalType.App in signal)) return;
+ const appSignal = signal[SignalType.App];
console.log(`Received app signal from cell (${signal.cell_id[0]}, ${signal.cell_id[1]}) and zome ${signal.zome_name} with payload ${signal.payload}`);
console.log(`Received app signal from cell (${appSignal.cell_id[0]}, ${appSignal.cell_id[1]}) and zome ${appSignal.zome_name} with payload ${appSgnal.payload}`);

Check warning on line 284 in src/pages/resources/upgrade/upgrade-holochain-0.4.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (Sgnal)

Check warning on line 284 in src/pages/resources/upgrade/upgrade-holochain-0.4.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (Sgnal)
});
```
Expand Down

0 comments on commit b14c432

Please sign in to comment.