diff --git a/src/content/parts/utbetaling/NyUtbetalingModal.tsx b/src/content/parts/utbetaling/NyUtbetalingModal.tsx index 14877e6..eb13d98 100644 --- a/src/content/parts/utbetaling/NyUtbetalingModal.tsx +++ b/src/content/parts/utbetaling/NyUtbetalingModal.tsx @@ -108,8 +108,12 @@ const defaultUtbetaling: Utbetaling = { }; const NyUtbetalingModal: React.FC = (props: Props) => { - const [modalUtbetaling, setModalUtbetaling] = - useState(initialUtbetaling); + + const utbetaling: Utbetaling = initialUtbetaling; + utbetaling.utbetalingsreferanse = generateFilreferanseId() + + const [modalUtbetaling, setModalUtbetaling] = useState(utbetaling); + const [kontonummerLabelPlaceholder, setKontonummerLabelPlaceholder] = useState("Kontonummer (Ikke satt)");