CSR-2076 | Make equals statement more robust

This commit is contained in:
Scott Kiener 2024-05-20 10:07:51 -04:00
parent 252d5454a1
commit 4830a53fb7

View file

@ -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;
}