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

feat: Add datamodel and data persistence layer #20 #46

Merged
merged 3 commits into from
Dec 16, 2024
Merged

feat: Add datamodel and data persistence layer #20 #46

merged 3 commits into from
Dec 16, 2024

Conversation

Yanni8
Copy link
Member

@Yanni8 Yanni8 commented Dec 15, 2024

See #20

@Yanni8 Yanni8 self-assigned this Dec 15, 2024
Comment on lines +24 to +30
export function deleteTransaction(id: number) {
const transactions = JSON.parse(localStorage.getItem("transactions") || "{}")

delete transactions[id]

localStorage.setItem("transactions", JSON.stringify(transactions));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in Zukunft zuerst überprüfen ob der Key überhaupt existiert.

@Yanni8 Yanni8 merged commit af47a19 into main Dec 16, 2024
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.

2 participants