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

[BUG] If a question has 0 points "?" gets displayed #218

Closed
Rllyyy opened this issue Nov 27, 2022 · 0 comments
Closed

[BUG] If a question has 0 points "?" gets displayed #218

Rllyyy opened this issue Nov 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Rllyyy
Copy link
Owner

Rllyyy commented Nov 27, 2022

Switch || to ?? for

<p className='question-points' data-testid='question-points'>
  {points ?? "?"} {points === 1 ? "Point" : "Points"}
</p>
@Rllyyy Rllyyy added the bug Something isn't working label Nov 27, 2022
@Rllyyy Rllyyy self-assigned this Nov 27, 2022
Rllyyy added a commit that referenced this issue Dec 3, 2022
…f points if question has 0 points (#218)+:test_tube:Added tests for deleting a question (#219)+:wrench:Replaced JavaScript files with TypeScript (#216)
@Rllyyy Rllyyy closed this as completed Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant