mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 13:17:45 +00:00
fix: build errors
This commit is contained in:
parent
c14b8d5a93
commit
af37b05ab1
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ export default function ProfileLayout() {
|
|||
const [loading, setLoading] = useState(true);
|
||||
const $session = useStore(session);
|
||||
|
||||
const userId = Number($session ? id : $session?.user?.id);
|
||||
const userId = Number(id ?? $session?.user?.id);
|
||||
|
||||
useEffect(() => {
|
||||
if ($session === undefined) return; // session still loading
|
||||
|
|
|
|||
Loading…
Reference in a new issue