close
The Wayback Machine - https://web.archive.org/web/20220114194347/https://github.com/HabitRPG/habitica/issues/13749
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

Negative habits don't display 0 correctly #13749

Open
CuriousMagpie opened this issue Jan 14, 2022 · 0 comments
Open

Negative habits don't display 0 correctly #13749

CuriousMagpie opened this issue Jan 14, 2022 · 0 comments

Comments

@CuriousMagpie
Copy link
Member

@CuriousMagpie CuriousMagpie commented Jan 14, 2022

General Info

  • UUID: 7c94e21b-8ff2-44a7-a5f1-cfdef807a5f5
  • Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
  • OS: Windows

Description

From user:

I have a negative habit defined, with no positive equivalent defined. I have not touched it for about a month, and it is showing "-0" instead of just zero. I understand that this probably has a minus because it is a bad habit but "-0" just looks weird/confusing because zero is not positive or negative, it is just zero.

streak-counter-negative

I checked the user's value for this habit in the database and it is currently 0.

A fix for this would remove the minus symbol from the streak if the value is equal to 0.

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

Successfully merging a pull request may close this issue.

None yet
1 participant