Skip to content

Commit

Permalink
fix: empty string default value
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej committed Feb 6, 2024
1 parent 9751f61 commit cc685df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/hooks/useOnboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export const useOnboarding = () => {
//TODO : it doesnt need to be a hook

export const useOnboardingSnapshot = () => {
const budgetItem = JSON.parse(localStorage.getItem('onboarding-budget') || '')
console.log('budgetItem', budgetItem)
const budgetItem = JSON.parse(
localStorage.getItem('onboarding-budget') || '""'
)

if (budgetItem) {
assertBudgetType(budgetItem)
}
Expand Down

0 comments on commit cc685df

Please sign in to comment.