From 08c719e39220c5d704a39cd0d4b670bd551f686f Mon Sep 17 00:00:00 2001 From: UO287747 Date: Mon, 4 Mar 2024 22:46:17 +0100 Subject: [PATCH] Fix SonarCloud --- webapp/src/components/Game.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/Game.jsx b/webapp/src/components/Game.jsx index 3dc9d8da..bc95c7f1 100644 --- a/webapp/src/components/Game.jsx +++ b/webapp/src/components/Game.jsx @@ -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) => {