From 16babe9e904041e2c713cfa05ec2929103bff506 Mon Sep 17 00:00:00 2001 From: Collin Beczak Date: Mon, 1 Jun 2026 15:38:36 -0300 Subject: [PATCH] use null check instead of undefined check for cooperativeWork property. --- src/interactions/Task/AsCooperativeWork.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interactions/Task/AsCooperativeWork.js b/src/interactions/Task/AsCooperativeWork.js index 96706c026..51dd6fa3e 100644 --- a/src/interactions/Task/AsCooperativeWork.js +++ b/src/interactions/Task/AsCooperativeWork.js @@ -18,7 +18,7 @@ export class AsCooperativeWork { * Determines if this represents a cooperative task */ isCooperative() { - return this.cooperativeWork !== undefined; + return this.cooperativeWork != null; } /**