fix(striker-ui): replace NaN with none in form summary

main^2
Tsu-ba-me 7 months ago
parent ae0a68320e
commit 0650b4f171
  1. 5
      striker-ui/components/FormSummary.tsx

@ -24,7 +24,10 @@ const renderEntryValueWithPassword: RenderFormValueFunction = (args) => {
const renderEntryValueBase: RenderFormValueFunction = (args) => { const renderEntryValueBase: RenderFormValueFunction = (args) => {
const { entry, hasPassword } = args; const { entry, hasPassword } = args;
if (['', null, undefined].some((bad) => entry === bad)) { if (
['', null, undefined].some((bad) => entry === bad) ||
Number.isNaN(entry)
) {
return <BodyText>none</BodyText>; return <BodyText>none</BodyText>;
} }

Loading…
Cancel
Save