generated from muhtadeetaron/nextjs-template
fix(api): fix api endpoint logic #5
chore(env): obscure api url in env feat(ui): render subjects according to user preparation unit
This commit is contained in:
@ -72,7 +72,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
|
||||
if (!res.ok) {
|
||||
throw new Error("Failed to fetch user info");
|
||||
}
|
||||
|
||||
console.log(API_URL)
|
||||
const data: UserData = await res.json();
|
||||
setUser(data);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user