Commit 7021e867 authored by Regis's avatar Regis

use indexOf instead of includes

parent 60b27b1b
......@@ -48,7 +48,7 @@ export default {
},
updateTaskHTML() {
const tasks = document.querySelector('#task_status_short');
const zeroTasks = this.apiData.task_status.includes('0 of 0');
const zeroTasks = this.apiData.task_status.indexOf('0 of 0') >= 0;
if (tasks && !zeroTasks) {
tasks.innerText = this.apiData.task_status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment