Skip to content

Commit 151afb6

Browse files
authored
Merge pull request #5 from maxcai314/master
2 parents cef0995 + 40656a0 commit 151afb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/quotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const getQuoteGenerator = () => {
1111
let quoteIndex = 0;
1212

1313
const chunk = fetch(
14-
`./quotes/${Math.floor(Math.random() * (amountChunks - 1))}.json`
14+
`./quotes/${Math.floor(Math.random() * (amountChunks))}.json`
1515
)
1616
.then((r) => r.json())
1717
.then(shuffleArray);

0 commit comments

Comments
 (0)