Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents the str.charAt crash #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rowboat1
Copy link
Contributor

@rowboat1 rowboat1 commented Jul 2, 2024

Game will periodically crash with a mysterious str.charAt error in the capitalize function. Mentioned in a comment in #95 though may not have been OP's problem.

One cause is in the type memo in item-card.tsx. It should always return a string, but in some cases returns undefined.

Punic Wars, for example, has a >60 character description, and is not a human, so it attempts to return the first element of its instance_of array, but the array is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant