From 4184e51ec3e459100d9849c81ddc3224682f4cd3 Mon Sep 17 00:00:00 2001 From: meew0 Date: Tue, 5 Jan 2016 20:33:55 +0100 Subject: [PATCH] Compare game objects before comparing their names See also http://git.io/vuR7p --- src/Structures/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Structures/User.js b/src/Structures/User.js index b3751c774..3074e8289 100644 --- a/src/Structures/User.js +++ b/src/Structures/User.js @@ -49,7 +49,7 @@ export default class User extends Equality{ this.discriminator === obj.discriminator && this.avatar === obj.avatar && this.status === obj.status && - (this.game && obj.game && this.game.name === obj.game.name) + (this.game === obj.game || this.game && obj.game && this.game.name === obj.game.name) ); else return false;