Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
satoren committed Nov 2, 2023
1 parent 52832d2 commit 82cbb83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vanilla/utils/unwrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export function unwrap<Value, Args extends unknown[], Result, PendingValue>(
return atom(
(get) => {
const state = get(promiseAndValueAtom)
if ('f' in state) { // is pending
if ('f' in state) {
// is pending
return state.f
}
return state.v
Expand Down

0 comments on commit 82cbb83

Please sign in to comment.