Skip to content

Commit

Permalink
fix. støtte tallet 0 i SjekkOmVerdiEksisterer
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikv committed Dec 18, 2024
1 parent 2e4219e commit 98af45b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const SjekkOmVerdiEksisterer: FunctionComponent<{
label?: string;
ariaLabel?: string;
}> = (props) => {
if (props.verdi) {
if (props.verdi || props.verdi === 0) {
return (
<BodyShort size="small" aria-label={props.ariaLabel}>
{props.label} {props.formatertVerdi ? props.formatertVerdi : props.verdi}
Expand Down

0 comments on commit 98af45b

Please sign in to comment.