-
Notifications
You must be signed in to change notification settings - Fork 46
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
Feature_add_ability_to_edit_custom_habit #2681
Feature_add_ability_to_edit_custom_habit #2681
Conversation
…_edit_custom_habit
…_edit_custom_habit
…_edit_custom_habit
SonarCloud Quality Gate failed. 0 Bugs 49.8% Coverage The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
localStorage.setItem(key, JSON.stringify(habit)); | ||
} | ||
|
||
public getHabitForEdit() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can create Interface and use type annotations in the function
@@ -34,6 +36,15 @@ export class LocalStorageService { | |||
return JSON.parse(localStorage.getItem(this.HABITS_GALLERY_VIEW)); | |||
} | |||
|
|||
public setHabitForEdit(key: string, habit: HabitInterface) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use void in type annotations
No description provided.