Remove experience notification when leveling up (#10285)

This commit is contained in:
Asher Dale 2018-04-28 18:37:58 +03:00 committed by Matteo Pagliazzi
parent 63598f497b
commit 403ac1ab7e

View file

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