From 0a7a027b4e5eef16b688f17d97e4023db6a1fe04 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Fri, 19 Jan 2018 23:43:16 -0200 Subject: [PATCH] Fix livechat register form This was caused by #9048 due to a result schema change --- packages/rocketchat-livechat/.app/client/views/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rocketchat-livechat/.app/client/views/register.js b/packages/rocketchat-livechat/.app/client/views/register.js index f42fe1aa5b9f..000b7f8a8399 100644 --- a/packages/rocketchat-livechat/.app/client/views/register.js +++ b/packages/rocketchat-livechat/.app/client/views/register.js @@ -58,7 +58,7 @@ Template.register.events({ return instance.showError(error.reason); } parentCall('callback', ['pre-chat-form-submit', _.omit(guest, 'token')]); - visitor.setId(result._id); + visitor.setId(result.userId); start(); }); }