Skip to content

Commit

Permalink
Merge pull request #184 from mysurvive/Fix_Implement_Tooltips
Browse files Browse the repository at this point in the history
Fix "Undefined" in Implement indicator tooltip
  • Loading branch information
mysurvive authored Dec 21, 2024
2 parents 0a20871 + 8ec286f commit 77b29fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ function showImplementsOnSheet(inventoryList, a) {
const imps = a.getFlag("pf2e-thaum-vuln", "selectedImplements");
if (imps) {
for (const key of Object.keys(imps)) {
const id = `[data-item-id="${imps[key]?.uuid?.split(".")[3]}`;
const id = `[data-item-id="${imps[key]?.uuid?.split(".")[3]}"]`;
const inventoryItem = $(inventoryList).find($("li")).filter($(id));

$(inventoryItem)
.find("div.item-name")
.append(
$(
`<img class="item-image item-icon" title="${imps[key]?.counter} implement" style="border-width: 0px; margin-left: 10px;" src="modules/pf2e-thaum-vuln/assets/chosen-implement.webp" />`
`<img class="item-image item-icon" title="${key} implement" style="border-width: 0px; margin-left: 10px;" src="modules/pf2e-thaum-vuln/assets/chosen-implement.webp" />`
)
);
}
Expand Down

0 comments on commit 77b29fc

Please sign in to comment.