Skip to content

Commit

Permalink
Reset certify validity on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
meawong committed Nov 4, 2024
1 parent 07a00e1 commit 214c5a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/views/Incorporation/IncorporationReviewConfirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,17 @@ export default class IncorporationReviewConfirm extends Vue {
@Action(useStore) setHasPlanOfArrangement!: (x: boolean) => void
@Action(useStore) setIsFutureEffective!: (x: boolean) => void
/**
* In case submitting the incorporation failed, we want to reset the validity of Certify.
* This is since the checkbox has to be ticked again after the save dialog has been closed.
*/
mounted (): void {
this.setCertifyState({
certifiedBy: this.getCertifyState.certifiedBy,
valid: false
})
}
/** The entity description, */
get getEntityDescription (): string {
return GetCorpFullDescription(this.getEntityType)
Expand Down

0 comments on commit 214c5a8

Please sign in to comment.