Skip to content

Commit

Permalink
fix: revert async await again (??) problem appears to be the format t…
Browse files Browse the repository at this point in the history
…hat's being saved (JSON or string)
  • Loading branch information
lightlii committed Aug 17, 2023
1 parent 06c68b8 commit c8c0848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/hooks/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import store from '../../persist-store'
const storage = {
/**
* @param {string} key - A string key to reference the stored item by.
* @returns {Promise<string | null>}
* @returns {string | null}
*/
getItem: async key => {
const item = await store.get(key)
getItem: key => {
const item = store.get(key)
return item ? JSON.stringify(item) : null
},
/**
Expand Down

0 comments on commit c8c0848

Please sign in to comment.