Skip to content

Commit

Permalink
Fix SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
UO287747 committed Mar 4, 2024
1 parent 5563b40 commit 08c719e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/Game.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ const Question = ({ goTo, setGameFinished }) => {
if (isCorrect(option)) return 'green';
};

// NOSONAR
// sonarignore:start
const shuffleOptions = (options) => {
return options.sort(() => Math.random() - 0.5);
};
// sonarignore:end

const handleSubmit = (option, index) => {

Expand Down

0 comments on commit 08c719e

Please sign in to comment.