Commit 68fe98ba by Arjun Jhukal

minor fix

parent de94be0d
"use client";
import GlassWrapper from '@/components/molecules/GlassWrapper';
import { useAppSelector } from '@/hooks/hook';
import { useGetUserGameCredentialsQuery } from '@/services/userApi';
import CredentialsCard from './CredentialsCard';
......@@ -41,8 +42,15 @@ function CredentialsCardShimmer() {
);
}
export default function GameCredentialsPage() {
const { data: creds, isLoading: loadingCreds } = useGetUserGameCredentialsQuery();
const token = useAppSelector((state) => state.auth.access_token);
const { data: creds, isLoading: loadingCreds } =
useGetUserGameCredentialsQuery(undefined, {
skip: !token
});
// const { data: creds, isLoading: loadingCreds } = useGetUserGameCredentialsQuery();
return (
<section className="credentials__listing ">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment