faq
Build and Release / release (push) Successful in 37s

This commit is contained in:
2026-05-30 23:53:33 +07:00
parent 793e980c93
commit 86ca32bc01
+11 -2
View File
@@ -61,13 +61,22 @@ export default function Profile() {
} }
}, [isHistorian]); }, [isHistorian]);
// Only show full page spinner on initial load when Redux state has no cached data
if (!currentUser) { if (!currentUser) {
return <Loading />; return <Loading />;
} }
const userMetaProps: UserMetaCardProps = { const userMetaProps: UserMetaCardProps = {
data: currentUser, data: currentUser
? {
id: currentUser.id,
email: currentUser.email,
profile: currentUser.profile,
roles: currentUser.roles?.map((role) => ({
id: Number(role.id) || undefined,
name: role.name,
})),
}
: undefined,
status: true, status: true,
}; };