Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
uuid toString rather than throw error (#345)
Browse files Browse the repository at this point in the history
* uuid toString rather than throw error

* proper bump to 0.9.10
  • Loading branch information
ianjennings committed Apr 3, 2018
1 parent 5e31d62 commit f8c1501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "PubNub",
"name": "chat-engine",
"version": "0.9.7",
"version": "0.9.10",
"description": "ChatEngine",
"main": "dist/chat-engine.js",
"scripts": {
Expand Down
7 changes: 1 addition & 6 deletions src/components/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ class User extends Emitter {
@readonly
@type String
*/

if (typeof uuid !== 'string') {
this.chatEngine.throwError(this, 'trigger', 'construct', new Error('UUID must be of type string'));
}

this.uuid = uuid;
this.uuid = uuid.toString();

/**
* Gets the user state. See {@link Me#update} for how to assign state values.
Expand Down

0 comments on commit f8c1501

Please sign in to comment.