From b7ce73790fa5b59c08033dc3f52eff81c24e72e7 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 16 Feb 2024 16:17:42 +0530 Subject: [PATCH] Removed: type checking for undefined param --- src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 21791d0..1536805 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -27,7 +27,7 @@ const sortSequence = (sequence: Array, sortOnField = "sequ // Sort undefined values at last if(a[sortOnField] == undefined) return 1; - if(b[sortOnField] === undefined) return -1; + if(b[sortOnField] == undefined) return -1; return a[sortOnField] - b[sortOnField] })