generated from muhtadeetaron/nextjs-template
fix(ui): fix ui icons and readability
This commit is contained in:
@ -9,7 +9,6 @@ import {
|
||||
InputOTPSlot,
|
||||
} from "@/components/ui/input-otp";
|
||||
import { API_URL } from "@/lib/auth";
|
||||
import { useAuthStore } from "@/stores/authStore";
|
||||
import Image from "next/image";
|
||||
import React, { useState } from "react";
|
||||
|
||||
@ -17,7 +16,6 @@ const VerificationScreen = () => {
|
||||
const [otp, setOtp] = useState("");
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const { fetchUser } = useAuthStore();
|
||||
|
||||
const handleVerify = async () => {
|
||||
if (otp.length < 6) return;
|
||||
@ -39,7 +37,6 @@ const VerificationScreen = () => {
|
||||
}
|
||||
|
||||
// 🔥 Call zustand action to update auth state
|
||||
await fetchUser();
|
||||
} catch (err: any) {
|
||||
setError(err.message);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user