fix(front): local storage user id name
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m11s
Build and Deploy Go App / deploy (push) Successful in 52s

This commit is contained in:
nihonium 2025-12-06 07:25:12 +03:00
parent 5fb7b16c96
commit 486c6d8407
Signed by: nihonium
GPG key ID: 0251623741027CFC

View file

@ -27,7 +27,7 @@ export function TitleStatusControls({ titleId }: { titleId: number }) {
const [currentStatus, setCurrentStatus] = useState<UserTitleStatus | null>(null);
const [loading, setLoading] = useState(false);
const userIdStr = localStorage.getItem("userId");
const userIdStr = localStorage.getItem("user_id");
const userId = userIdStr ? Number(userIdStr) : null;
// --- Load initial status ---