fix(front): local storage user id name
This commit is contained in:
parent
5fb7b16c96
commit
486c6d8407
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ export function TitleStatusControls({ titleId }: { titleId: number }) {
|
||||||
const [currentStatus, setCurrentStatus] = useState<UserTitleStatus | null>(null);
|
const [currentStatus, setCurrentStatus] = useState<UserTitleStatus | null>(null);
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
|
||||||
const userIdStr = localStorage.getItem("userId");
|
const userIdStr = localStorage.getItem("user_id");
|
||||||
const userId = userIdStr ? Number(userIdStr) : null;
|
const userId = userIdStr ? Number(userIdStr) : null;
|
||||||
|
|
||||||
// --- Load initial status ---
|
// --- Load initial status ---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue