Skip to content

Commit 8b4acdf

Browse files
committed
function name change
1 parent ccd724b commit 8b4acdf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/Table/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,11 @@ const Table = () => {
207207
},
208208
{
209209
Header: () => {
210-
const randomQuestionId = () => {
210+
const randomQuestion = () => {
211211
const random = Math.floor(Math.random() * questions.length);
212212
const questionId = questions[random].id;
213213
const questionSlug = questions[questionId].url;
214214
window.open(`${questionSlug}`, '_blank');
215-
return questionId;
216215
};
217216
return (
218217
<>
@@ -221,7 +220,7 @@ const Table = () => {
221220
>
222221
Questions{' '}
223222
<Button
224-
onClick={randomQuestionId}
223+
onClick={randomQuestion}
225224
color="dark"
226225
id="random-question-button"
227226
size="sm"

0 commit comments

Comments
 (0)