Skip to content

Commit 697f560

Browse files
author
pemrouz
committed
fix: default to state of world if no change info
This defaults to the empty object, which is then normalized by the normalize function to the complete info
1 parent cfc8e87 commit 697f560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const connected = ripple => socket => {
2727

2828
const broadcast = ripple => (name, change) => {
2929
(client ? ripple.send : ripple.send())
30-
(extend({ name })(change))
30+
(extend({ name })(change || {}))
3131
}
3232

3333
const normalize = (ripple, next = identity) => (name, type, value) => {

0 commit comments

Comments
 (0)