From 403ac1ab7ead2e4c878728355df8ae6a9dbb28f7 Mon Sep 17 00:00:00 2001 From: Asher Dale Date: Sat, 28 Apr 2018 18:37:58 +0300 Subject: [PATCH] Remove experience notification when leveling up (#10285) --- website/client/mixins/notifications.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/client/mixins/notifications.js b/website/client/mixins/notifications.js index f58064a54e..97bf1c3b1e 100644 --- a/website/client/mixins/notifications.js +++ b/website/client/mixins/notifications.js @@ -22,8 +22,10 @@ export default { this.notify(this.$t(type, { val }), 'success'); }, exp (val) { - let message = getXPMessage(val); - this.notify(message, 'xp', 'glyphicon glyphicon-star', this.sign(val)); + const message = getXPMessage(val); + if (message) { + this.notify(message, 'xp', 'glyphicon glyphicon-star', this.sign(val)); + } }, error (error) { this.notify(error, 'error', 'glyphicon glyphicon-exclamation-sign');