Skip to content

Commit

Permalink
FAGSYSTEM-360636: Ikke lov å legge til trygdetid > 40 år
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikg committed Dec 13, 2024
1 parent af381ef commit 461b8e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const OverstyrBeregningsgrunnlagExpandableRowContent = ({
return (
<HStack gap="8">
<div>
<Label>Anvendt trygdetid</Label>
<Label>Anvendt trygdetid (år)</Label>
<BodyShort>{overtyrBeregningsgrunnlagPeriode.data.trygdetid}</BodyShort>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ export const OverstyrBeregningsgrunnlagPeriodeSkjema = ({
valueAsNumber: true,
required: { value: true, message: 'Må settes' },
min: { value: 0, message: 'Kan ikke være negativ' },
max: { value: 40, message: 'Kan ikke være mer enn 40 år' },
validate: validerStringNumber,
})}
label="Anvendt trygdetid"
label="Anvendt trygdetid (år)"
error={errors.data?.trygdetid?.message}
/>
<TextField
Expand Down

0 comments on commit 461b8e1

Please sign in to comment.