Skip to content

Commit

Permalink
fix: Fix ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanni8 committed Dec 15, 2024
1 parent f675851 commit 44eb987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/data.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Transaction } from "@/models/transaction";

export function saveTransaction(transaction: Transaction): number {
let transactions = JSON.parse(localStorage.getItem("transactions") || "{}")
const transactions = JSON.parse(localStorage.getItem("transactions") || "{}")

let maxIndex = 0;

Expand All @@ -22,7 +22,7 @@ export function saveTransaction(transaction: Transaction): number {
}

export function deleteTransaction(id: number) {
let transactions = JSON.parse(localStorage.getItem("transactions") || "{}")
const transactions = JSON.parse(localStorage.getItem("transactions") || "{}")

delete transactions[id]

Expand Down

0 comments on commit 44eb987

Please sign in to comment.