Fix isChat to also check taskTypeName for 'chat'

This commit is contained in:
John Pinkyfloyd 2026-02-17 11:38:31 -08:00
parent 445ec768b4
commit 8d604649a2

View file

@ -89,7 +89,7 @@ struct WorkTask: Identifiable {
} }
/// Chat or Call Team Member tasks - both involve customer interaction /// Chat or Call Team Member tasks - both involve customer interaction
var isChat: Bool { taskTypeId == 2 || taskTypeId == 6 } var isChat: Bool { taskTypeId == 2 || taskTypeId == 6 || taskTypeName.lowercased().contains("chat") }
var isCash: Bool { taskTypeName.lowercased().contains("cash") } var isCash: Bool { taskTypeName.lowercased().contains("cash") }
// MARK: - Flexible parsing helpers // MARK: - Flexible parsing helpers