From 4830a53fb747983adf23dac395a050f6cd12f982 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Mon, 20 May 2024 10:07:51 -0400 Subject: [PATCH] CSR-2076 | Make equals statement more robust --- src/store/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index 50c6c1612..4ee3f3c7a 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2988,6 +2988,12 @@ function providersEqual(providerA, providerB) { } function supportingItemsEqual(supportingItemsA, supportingItemsB) { + if (typeof supportingItemsA !== typeof supportingItemsB) { + return false; + } + if (supportingItemsA === null || supportingItemsB === null) { + return supportingItemsA === supportingItemsB; + } if (supportingItemsA.length != supportingItemsB.length) { return false; }