We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd724b commit 8b4acdfCopy full SHA for 8b4acdf
src/components/Table/index.js
@@ -207,12 +207,11 @@ const Table = () => {
207
},
208
{
209
Header: () => {
210
- const randomQuestionId = () => {
+ const randomQuestion = () => {
211
const random = Math.floor(Math.random() * questions.length);
212
const questionId = questions[random].id;
213
const questionSlug = questions[questionId].url;
214
window.open(`${questionSlug}`, '_blank');
215
- return questionId;
216
};
217
return (
218
<>
@@ -221,7 +220,7 @@ const Table = () => {
221
220
>
222
Questions{' '}
223
<Button
224
- onClick={randomQuestionId}
+ onClick={randomQuestion}
225
color="dark"
226
id="random-question-button"
227
size="sm"
0 commit comments