Skip to content

Commit 21ef3a5

Browse files
committed
hotfix for #97
1 parent e53c560 commit 21ef3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ItemData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export const ItemNameHelper = (item: Item) => {
234234
// No scythe, milking pail, or shears
235235
const tools = ["Pickaxe", "Axe", "Hoe", "Watering Can"];
236236
for (const tool of tools) {
237-
if (item.name.endsWith(tool)) {
237+
if ((item.name ?? "").endsWith(tool)) {
238238
switch (item.upgradeLevel) {
239239
case 4:
240240
return `Iridium ${tool}`;

0 commit comments

Comments
 (0)