-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task commit #1
base: main
Are you sure you want to change the base?
task commit #1
Conversation
You have 2 lock files from 2 different package managers:
|
why do you need |
}, [countriesData]); | ||
|
||
const updateQuestion = (option) => { | ||
if (answers[activeStageIndex] === undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of nesting code inside in if
it's better to use conditional guard
if (answers[activeStageIndex]) return
setAnswers((prevAnswers) => ({
...prevAnswers,
[activeStageIndex]: option,
}));
https://refactoring.guru/uk/replace-nested-conditional-with-guard-clauses
return []; | ||
}, [countriesData]); | ||
|
||
const updateQuestion = (option) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option
-> answer
I see a lot of abstract namings, please pay attention
No description provided.