From 57c234c6e9374f38cb927859b7daf6e18f962e9f Mon Sep 17 00:00:00 2001 From: micah Date: Sun, 2 Jun 2019 10:25:10 -0400 Subject: [PATCH] Fix rarely sending incorrect entities --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 2d527d3..7248e41 100644 --- a/src/util.ts +++ b/src/util.ts @@ -60,7 +60,7 @@ export function stringifyData(data: any): string { if(type) return { __t: type, - i: value.remoteId || value.id + i: typeof value.remoteId === 'number' ? value.remoteId : value.id }; }