Compare game objects before comparing their names

See also http://git.io/vuR7p
This commit is contained in:
meew0
2016-01-05 20:33:55 +01:00
parent 404829a19d
commit 4184e51ec3

View File

@@ -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;