mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix: Use === in comparison
This commit is contained in:
@@ -191,7 +191,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||||||
$scope.addChecklistItem = function(task, $event, $index) {
|
$scope.addChecklistItem = function(task, $event, $index) {
|
||||||
if (task.checklist[$index].text) {
|
if (task.checklist[$index].text) {
|
||||||
$scope.saveTask(task, true);
|
$scope.saveTask(task, true);
|
||||||
if ($index == task.checklist.length - 1)
|
if ($index === task.checklist.length - 1)
|
||||||
task.checklist.push({ completed: false, text: '' });
|
task.checklist.push({ completed: false, text: '' });
|
||||||
focusChecklist(task, $index + 1);
|
focusChecklist(task, $index + 1);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user