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

Fixes the number issue present on the App Registrations page. #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aidan959
Copy link

Basically moves an if from an else if. Was very bored in the car going around cork.

aidan959 added 2 commits July 10, 2020 14:00
Haven't tested this code yet. Should fix the funny issue with the 1000k number display.
Did in the car and forgot that else doesnt also include the condition so
@jasnell
Copy link

jasnell commented Jul 28, 2020

/cc @colmharte

jasnell added a commit to jasnell/covid-tracker-app that referenced this pull request Jul 28, 2020
@@ -27,7 +27,7 @@ function formatLabel(value: number) {
return `${millions}m`;
}

if (value > 1000) {
else if (value > 1000) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous if statement returns from the function so changing this to an else if will not change the behaviour

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.

3 participants