Skip to content

Commit

Permalink
fixed condition of delete in ReactiveSet
Browse files Browse the repository at this point in the history
  • Loading branch information
godzylinux committed May 7, 2024
1 parent 05f76a8 commit f329d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/reactivity/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const ReactiveSet = make_reactive(Set, {
return value.size !== 0;
},
delete: (value, property, ...params) => {
return !value.has(params[0]);
return value.has(params[0]);
}
}
});

0 comments on commit f329d7e

Please sign in to comment.