Skip to content

Commit

Permalink
En del mer bugfiksing og refaktorering for react-hook-forms, mindre u…
Browse files Browse the repository at this point in the history
…pdate
  • Loading branch information
stigus committed Dec 18, 2023
1 parent 6a08fa3 commit d3b83a4
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 97 deletions.
164 changes: 82 additions & 82 deletions apps/dolly-frontend/src/main/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/dolly-frontend/src/main/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dolly",
"version": "2.5.40",
"version": "2.5.41",
"type": "module",
"description": "",
"main": "index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const Navigation = ({ step, onPrevious, isLastStep, handleSubmit }) => {
return 'Opprett'
}

const hasErrors = step !== 0 && !_.isEmpty(errors)
const disabledVidere = step !== 0 && opts?.is?.leggTil && !harAvhukedeAttributter(getValues())

return (
Expand All @@ -58,7 +57,7 @@ export const Navigation = ({ step, onPrevious, isLastStep, handleSubmit }) => {
<NavButton
data-cy={CypressSelector.BUTTON_VIDERE}
variant={'primary'}
disabled={hasErrors || isSubmitting || disabledVidere}
disabled={isSubmitting || disabledVidere}
onClick={handleSubmit}
>
Videre
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ const validFradato = (vedtakType) => {
'har-gjeldende-vedtak',
'AAP- og Dagpenger-vedtak kan ikke overlappe hverandre',
(val, testContext) => {
const context = testContext.options.context
const fullForm = testContext.from && testContext.from[testContext.from.length - 1]?.value
const naavaerendeVerdier = {}
for (let key of ikkeOverlappendeVedtak) {
Expand Down
Loading

0 comments on commit d3b83a4

Please sign in to comment.