Skip to content

Commit

Permalink
fix: verify application errors
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski committed Nov 30, 2023
1 parent be1170e commit 36e5447
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sites/public/src/pages/applications/start/autofill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ export default () => {
setSubmitted(true)
if (previousApplication && useDetails) {
const withUpdatedLang = {
...previousApplication,
...JSON.parse(JSON.stringify(previousApplication)),
language: router.locale,
}

conductor.application = withUpdatedLang
} else {
const newApplication = {
...blankApplication,
conductor.application = {
...JSON.parse(JSON.stringify(blankApplication)),
language: router.locale,
}
conductor.application = newApplication
}

context.syncApplication(conductor.application)
Expand Down

0 comments on commit 36e5447

Please sign in to comment.