strict equality and double quotes

This commit is contained in:
Soner Sayakci 2016-08-16 23:51:52 +02:00
parent ca23f3524e
commit aa357c8c4c
No known key found for this signature in database
GPG Key ID: 9BA8CD75FEAAC81D

View File

@ -77,7 +77,7 @@ class Player {
updateByObject(obj) {
for (let key in obj) {
if (this.hasOwnProperty(key)) {
if (key == 'send_marketing_emails' || key == 'send_push_notifications') {
if (key === "send_marketing_emails" || key === "send_push_notifications") {
this[key] = !!obj[key];
} else {
this[key] = obj[key];