Skip to content

Commit

Permalink
close #1927
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-man committed Apr 26, 2024
1 parent 97f78d1 commit 40223d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/system/config-wfrp4e.js
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ WFRP4E.PrepareSystemItems = function() {
label : "@effect.name",
trigger : "immediate",
script : `
let name = this.item.flags.wfrp4e?.fearName
let name = this.item?.flags?.wfrp4e?.fearName
this.effect.updateSource({"flags.wfrp4e.dialogTitle" : (name ? game.i18n.format("EFFECT.AffectTheSourceOfFearName", {name}) : game.i18n.format("EFFECT.AffectTheSourceOfFear"))})
`
}
Expand Down Expand Up @@ -2041,7 +2041,7 @@ WFRP4E.PrepareSystemItems = function() {
label : "@effect.name",
trigger : "immediate",
script : `
let name = this.item.flags.wfrp4e?.fearName
let name = this.item?.flags?.wfrp4e?.fearName
this.effect.updateSource({"flags.wfrp4e.dialogTitle" : (name ? game.i18n.format("EFFECT.AffectTheSourceOfFearName", {name}) : game.i18n.format("EFFECT.AffectTheSourceOfFear"))})
`
}
Expand Down

0 comments on commit 40223d1

Please sign in to comment.