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

Feature_add_ability_to_edit_custom_habit #2681

Merged
merged 10 commits into from
Sep 18, 2023

Conversation

mdashko
Copy link
Contributor

@mdashko mdashko commented Sep 11, 2023

No description provided.

@mdashko mdashko self-assigned this Sep 11, 2023
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

49.8% 49.8% Coverage
0.0% 0.0% Duplication

warning 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.
Read more here

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

localStorage.setItem(key, JSON.stringify(habit));
}

public getHabitForEdit() {
Copy link
Contributor

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) {
Copy link
Contributor

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

@hnativlyubomyr hnativlyubomyr merged commit 2f04a9c into dev Sep 18, 2023
@hnativlyubomyr hnativlyubomyr deleted the Feature_add_ability_to_edit_custom_habit branch September 18, 2023 06:16
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.

6 participants