null -> undefined

This commit is contained in:
Steve Klebanoff
2018-11-16 10:14:42 -08:00
parent 988bb398bc
commit 85a99203d0

View File

@@ -78,11 +78,11 @@ const setupZeroExInstantHeap = () => {
};
export const heapUtil = {
getHeap: (): HeapAnalytics | null => {
getHeap: (): HeapAnalytics | undefined => {
const curWindow = getWindow();
const hasOtherExistingHeapIntegration = curWindow.heap && !curWindow.zeroExInstantLoadedHeap;
if (hasOtherExistingHeapIntegration) {
return null;
return undefined;
}
const zeroExInstantHeapIntegration = curWindow.zeroExInstantLoadedHeap && curWindow.heap;