Skip to content

Commit

Permalink
updated alternative solution
Browse files Browse the repository at this point in the history
Signed-off-by: Qin <[email protected]>
  • Loading branch information
ArwenQin committed Sep 4, 2024
1 parent ffa6078 commit 9699764
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ export const useStore = defineStore('store', {

const isCertifyValid = this.getCertifyState.valid && !!this.getCertifyState.certifiedBy

const isCourtOrderValid = this.isRoleStaff ? this.getCourtOrderStep.valid : true
const isCourtOrderValid = (this.isBaseCompany && this.isRoleStaff) ? this.getCourtOrderStep.valid : true

const isStaffPaymentValid = this.isRoleStaff ? this.getStaffPaymentStep.valid : true

Expand Down
4 changes: 0 additions & 4 deletions src/views/Incorporation/IncorporationReviewConfirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,6 @@ export default class IncorporationReviewConfirm extends Vue {
/** Is true when the certify conditions are not met. */
get isCertifyInvalid (): boolean {
// Set the Court Order section valid, when it is not visible
if (!(this.isBaseCompany && this.isRoleStaff)) {
this.setCourtOrderValidity(true)
}
return this.getValidateSteps && !(this.getCertifyState.certifiedBy && this.getCertifyState.valid)
}
Expand Down

0 comments on commit 9699764

Please sign in to comment.