Skip to content

Commit ef807c4

Browse files
🐛 Tillater blankt inputfelt ved skjønnsfastsettelse
Co-authored-by: Jonas Hasle <[email protected]>
1 parent 1d32cea commit ef807c4

File tree

1 file changed

+1
-0
lines changed
  • packages/frontend/routes/saksbilde/sykepengegrunnlag/skjønnsfastsetting/form/arbeidsgivere

1 file changed

+1
-0
lines changed

packages/frontend/routes/saksbilde/sykepengegrunnlag/skjønnsfastsetting/form/arbeidsgivere/ArbeidsgiverRad.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const ArbeidsgiverRad = ({
5757
);
5858

5959
const formaterBeløp = (e: React.ChangeEvent<HTMLInputElement>) => {
60+
if (e.target.value === '') return e;
6061
const splittetInput = e.target.value.split(',');
6162
const kronebeløpUtenDesimaler = toKronerOgØre(splittetInput[0].replace(/\s/g, ''), 0);
6263
const caretStart = (e.target?.selectionStart ?? 0) - (splittetInput[0].length - kronebeløpUtenDesimaler.length);

0 commit comments

Comments
 (0)