fix(leaderboard): fix leaderboard scheme for questions and streaks
This commit is contained in:
@ -17,6 +17,7 @@ import {
|
||||
DrawerContent,
|
||||
DrawerTrigger,
|
||||
} from "../../components/ui/drawer";
|
||||
import { useExamConfigStore } from "../../stores/useExamConfigStore";
|
||||
|
||||
// ─── Shared blob/dot background (same as break/results screens) ────────────────
|
||||
const DOTS = [
|
||||
@ -332,6 +333,7 @@ const PAGE_SIZE = 2;
|
||||
export const Home = () => {
|
||||
const user = useAuthStore((state) => state.user);
|
||||
const navigate = useNavigate();
|
||||
const { userMetrics } = useExamConfigStore();
|
||||
|
||||
const [practiceSheets, setPracticeSheets] = useState<PracticeSheet[]>([]);
|
||||
const [notStartedSheets, setNotStartedSheets] = useState<PracticeSheet[]>([]);
|
||||
@ -465,7 +467,7 @@ export const Home = () => {
|
||||
{/* Streak chip */}
|
||||
<div className="h-chip streak">
|
||||
<Flame size={18} style={{ fill: "#fca5a5" }} />
|
||||
<span>5</span>
|
||||
<span>{userMetrics.streak}</span>
|
||||
</div>
|
||||
|
||||
{/* Score chip */}
|
||||
|
||||
Reference in New Issue
Block a user