Skip to content

Commit

Permalink
refactor: don't throw so something like this doesn't happen again
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Apr 10, 2024
1 parent 0f75004 commit 6b7ff54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/constants/pet-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function getValue(rarity, data) {
case MYTHIC:
return mythic;
default:
throw new Error("Unknown rarity");
console.log(`Unknown rarity: ${rarity}`);
// throw new Error("Unknown rarity");
}
}

Expand Down

0 comments on commit 6b7ff54

Please sign in to comment.