Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix the reset function
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed May 23, 2024
1 parent ac10908 commit 8649653
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,8 @@ <h3>Report</h3>
}

async function clearUserProfile() {
localStorage.clear()
userProfile = EMPTY_PROFILE
localStorage.setItem("userProfile", JSON.stringify(userProfile))
localStorage.setItem("userProfile", JSON.stringify(EMPTY_PROFILE))
userProfile = JSON.parse(localStorage.getItem("userProfile"))
await update()
}

Expand Down

0 comments on commit 8649653

Please sign in to comment.