Skip to content

Commit 1ca628f

Browse files
Ruben van LeeuwenDutchBen
authored andcommitted
1513: Replace isEmpty function with lodash version to include []
1 parent fc8002a commit 1ca628f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/wfo-ui

packages/orchestrator-ui-components/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState } from 'react';
22

3+
import { isEmpty } from 'lodash';
34
import { useTranslations } from 'next-intl';
45

56
import {
@@ -61,10 +62,6 @@ export const WfoSubscriptionProductBlock = ({
6162
);
6263
const showProductBlockValues = !isOutsideCurrentSubscription || showDetails;
6364

64-
const isEmpty = (value: unknown) => {
65-
return value === null || value === undefined || value === '';
66-
};
67-
6865
return (
6966
<>
7067
<EuiSpacer size={'m'}></EuiSpacer>

0 commit comments

Comments
 (0)