Skip to content

Commit

Permalink
Fikser denne buggen: (#233)
Browse files Browse the repository at this point in the history
Under generering av ny utbetaling så er utbetalingsreferansen statisk, som forårsaker at utbetalingen blir sett på som duplikat og det vises bare 1 i innsyn og modia.

Mer informasjon i: https://trello.com/c/CoS07oOZ/117-feil-med-utbetalinger-i-fagsystem-mock

Co-authored-by: Åshild Lobben Simonsen <ashild.lobben.simonsen@nav.no>
  • Loading branch information
joeldlin and aalsim authored Feb 19, 2024
1 parent a390379 commit 6e5523b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/content/parts/utbetaling/NyUtbetalingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ const defaultUtbetaling: Utbetaling = {
};

const NyUtbetalingModal: React.FC<Props> = (props: Props) => {
const [modalUtbetaling, setModalUtbetaling] =
useState<Utbetaling>(initialUtbetaling);

const utbetaling: Utbetaling = initialUtbetaling;
utbetaling.utbetalingsreferanse = generateFilreferanseId()

const [modalUtbetaling, setModalUtbetaling] = useState<Utbetaling>(utbetaling);

const [kontonummerLabelPlaceholder, setKontonummerLabelPlaceholder] =
useState("Kontonummer (Ikke satt)");

Expand Down

0 comments on commit 6e5523b

Please sign in to comment.