Skip to content

Commit

Permalink
Update lib/rules/hook-use-state.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
duncanbeevers and ljharb committed Mar 14, 2022
1 parent 40a08a3 commit 304edf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/hook-use-state.js
Expand Up @@ -84,7 +84,7 @@ module.exports = {
{
desc: 'Destructure useState call into value + setter pair',
fix: (fixer) => {
if (!expectedSetterVariableNames) {
if (expectedSetterVariableNames.length === 0) {
return;
}

Expand Down

0 comments on commit 304edf2

Please sign in to comment.