trivia: maybe fix the session token issue?

This commit is contained in:
Ayden Jahola 2024-09-09 15:18:00 +01:00
父節點 82040aaba5
當前提交 abf7b6fb6d
沒有發現已知的金鑰在資料庫的簽署中
GPG key ID: 71DD90AE4AE92742

查看文件

@ -108,7 +108,7 @@ const fetchTriviaQuestion = async (categoryId, categoryName) => {
);
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) {
// Token not found
sessionToken = await getSessionToken(); // Create a new token