trivia: maybe fix the session token issue?

This commit is contained in:
Ayden Jahola 2024-09-09 15:18:00 +01:00
parent 82040aaba5
commit abf7b6fb6d
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -108,7 +108,7 @@ const fetchTriviaQuestion = async (categoryId, categoryName) => {
); );
const apiQuestion = response.data.results[0]; const apiQuestion = response.data.results[0];
// Check if the token is exhausted (response code 4 indicates this) // Check if the token is exhausted (response code 3 indicates this)
if (response.data.response_code === 3) { if (response.data.response_code === 3) {
// Token not found // Token not found
sessionToken = await getSessionToken(); // Create a new token sessionToken = await getSessionToken(); // Create a new token