Crazy-Marvin / ToDont

The reverse to-do list
https://crazymarvin.com/todont
Apache License 2.0
145 stars 29 forks source link

[bug] app crash when adding a habit without a label #187

Closed starspritechippy closed 1 year ago

starspritechippy commented 1 year ago

:writing_hand: Describe the bug

when creating a habit without first adding a label and saving the habit, the app crashes and can't be opened until clearing all data.

:bomb: Steps to reproduce

  1. Open the app after installing/clearing data
  2. Don't create a label, immediately tap the (+) Button to create a habit
  3. enter a name and note
  4. Tap Save

:wrench: Expected behavior

The habit saves with a "no label set" message, where a label should be. Alternatively, prompt the user to create a label first.

:camera: Screenshots

:iphone: Tech info

:page_facing_up: Additional context

CrazyMarvin commented 1 year ago

Thanks for the bug report. We will look into it.

arafaatqureshi commented 1 year ago

Looking into it. will update it with an alert message to add a label first.

CrazyMarvin commented 1 year ago

This should be fixed with v2.0. Please let me know if that works for you, @starspritechippy. Thanks for reporting it. 😘