Skip to content

Null checks on stats object when setting text#3

Open
rsquared86 wants to merge 2 commits intoblndspt:masterfrom
rsquared86:master
Open

Null checks on stats object when setting text#3
rsquared86 wants to merge 2 commits intoblndspt:masterfrom
rsquared86:master

Conversation

@rsquared86
Copy link

If you are not using all of the stats variables, an error occurs because that variable is undefined on the stats object.

I added an if statement around each of them before trying to set the text to fix the issue.

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