Skip to content

Commit

Permalink
18735 - Fix rules showing up as being changed, when it's on paper (bc…
Browse files Browse the repository at this point in the history
…gov#549)

* Fix rules being changed, when it's on paper

* Fix bad code

* add in extra || null
  • Loading branch information
seeker25 authored and JazzarKarim committed Jan 26, 2024
1 parent 804ebf3 commit b89765a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1312,11 +1312,9 @@ export const useStore = defineStore('store', {
},

hasSpecialResolutionRulesChanged (): boolean {
return (
this.getSpecialResolutionRules?.includedInResolution ||
(this.getSpecialResolutionRules?.key !==
this.getEntitySnapshot?.businessDocuments?.documentsInfo?.certifiedRules?.key)
)
return this.getSpecialResolutionRules?.includedInResolution ||
(this.getSpecialResolutionRules?.key || null) !==
(this.getEntitySnapshot?.businessDocuments?.documentsInfo?.certifiedRules?.key || null)
},

// Grab the latest resolution from the entity snapshot.
Expand Down

0 comments on commit b89765a

Please sign in to comment.