Skip to content

Commit

Permalink
- app version = 5.6.21
Browse files Browse the repository at this point in the history
- added fallback for drafts created without Correct Name Option
  • Loading branch information
Severin Beauvais committed Jan 2, 2024
1 parent b4cadcc commit 252b158
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-create-ui",
"version": "5.6.20",
"version": "5.6.21",
"private": true,
"appName": "Create UI",
"sbcName": "SBC Common Components",
Expand Down
7 changes: 7 additions & 0 deletions src/mixins/filing-template-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,13 @@ export default class FilingTemplateMixin extends Mixins(AmalgamationMixin, DateM
// restore numbered name
this.setNameRequestApprovedName(nameRequest.legalName)
break
default:
// fallback for draft created without Correct Name Option
// NB: do not restore Name Request data
// it will be reloaded from NR endpoint in App.vue
if (nameRequest.nrNumber) {
this.setCorrectNameOption(CorrectNameOptions.CORRECT_NEW_NR)
}
}

// restore Name Translations
Expand Down

0 comments on commit 252b158

Please sign in to comment.