add tests + fix lint

This commit is contained in:
negue
2018-06-08 21:50:52 +02:00
parent 13bae96708
commit 09e4c88606
3 changed files with 75 additions and 10 deletions

View File

@@ -119,16 +119,8 @@ export default {
comment: this.reportComment,
});
console.info('error', result);
this.$root.$emit('habitica:report-result', result);
if (!result.ok && result.error) {
alert('errrorororor!');
console.info('error', result);
this.error(result.error);
}
this.close();
},
async clearFlagCount () {