From f04744ca66bea9d2d176acce73b1b707038b89fe Mon Sep 17 00:00:00 2001 From: Travis1282 Date: Fri, 15 Sep 2023 09:43:25 -0500 Subject: [PATCH] queuePosition should not be null --- src/sdk/lsf-sdk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk/lsf-sdk.js b/src/sdk/lsf-sdk.js index c2c82914..63fad172 100644 --- a/src/sdk/lsf-sdk.js +++ b/src/sdk/lsf-sdk.js @@ -159,7 +159,7 @@ export class LSFWrapper { const queueTotal = dm.store.project.reviewer_queue_total || dm.store.project.queue_total; const queueDone = dm.store.project.queue_done; const queueLeft = dm.store.project.queue_left; - const queuePosition = queueDone ? queueDone + 1 : queueLeft ? queueTotal - queueLeft + 1 : null; + const queuePosition = queueDone ? queueDone + 1 : queueLeft ? queueTotal - queueLeft + 1 : 1; const lsfProperties = { // ensure that we are able to distinguish at component level if the app has fully hydrated.