From 27b4f8b8535135e24cc63758fad4cecd5c7a5ef8 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 29 Apr 2021 23:03:14 +0100 Subject: [PATCH] Fixed linting errors --- modules/gui/task-list.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/task-list.lua b/modules/gui/task-list.lua index a95fc414..4b5c8ed4 100644 --- a/modules/gui/task-list.lua +++ b/modules/gui/task-list.lua @@ -626,7 +626,7 @@ Tasks.on_update( -- Update the task view elements if the player currently being looped over has this specific task selected local selected = PlayerSelected:get(player) if selected == task_id then - if task then + if curr_state then update_task_view_footer(player, selected) else PlayerSelected:set(player, nil)