Skip to content

Commit

Permalink
fix: only treat null/undefined as falsy when rendering XComEntry (apa…
Browse files Browse the repository at this point in the history
…che#42199)

fix: only treat null, undefined or NaN as NULL in XComEntry render

fix: use coalescing nullish check + isNaN

fix: only treat null/undefined as falsy when rendering XComEntry
  • Loading branch information
detvdl authored and joaopamaral committed Oct 21, 2024
1 parent 98c27f0 commit 21d9d89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const XcomEntry = ({
No value found for XCom key
</Alert>
);
} else if (!xcom.value) {
} else if (xcom.value === undefined || xcom.value === null) {
content = (
<Alert status="info">
<AlertIcon />
Expand Down

0 comments on commit 21d9d89

Please sign in to comment.