Skip to content

Commit

Permalink
chore: Fix typo in comment (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Apr 11, 2021
1 parent 557aad5 commit ffa3972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const objectTraps: ProxyHandler<ProxyState> = {
return true
}
if (!state.modified_) {
// the last check is because we need to be able to distinguish setting a non-existig to undefined (which is a change)
// the last check is because we need to be able to distinguish setting a non-existing to undefined (which is a change)
// from setting an existing property with value undefined to undefined (which is not a change)
const current = peek(latest(state), prop)
// special case, if we assigning the original value to a draft, we can ignore the assignment
Expand Down

0 comments on commit ffa3972

Please sign in to comment.