Prettier format pending files
This commit is contained in:
parent
af52706b2f
commit
7688f923c1
2 changed files with 7 additions and 4 deletions
|
|
@ -30,7 +30,9 @@ export default function Admin() {
|
|||
const { user, loading, roles } = useAuth();
|
||||
const navigate = useNavigate();
|
||||
const isOwner = Array.isArray(roles) && roles.includes("owner");
|
||||
const [managedProfiles, setManagedProfiles] = useState<AethexUserProfile[]>([]);
|
||||
const [managedProfiles, setManagedProfiles] = useState<AethexUserProfile[]>(
|
||||
[],
|
||||
);
|
||||
type Studio = {
|
||||
name: string;
|
||||
tagline?: string;
|
||||
|
|
|
|||
|
|
@ -394,9 +394,10 @@ export default function Dashboard() {
|
|||
(p) => p.status === "completed",
|
||||
).length;
|
||||
|
||||
const totalXp = typeof (profile as any)?.total_xp === "number"
|
||||
? (profile as any).total_xp
|
||||
: 0;
|
||||
const totalXp =
|
||||
typeof (profile as any)?.total_xp === "number"
|
||||
? (profile as any).total_xp
|
||||
: 0;
|
||||
const performanceBase =
|
||||
60 + activeCount * 5 + completedCount * 8 + userAchievements.length * 3;
|
||||
const performanceScore = Math.min(
|
||||
|
|
|
|||
Loading…
Reference in a new issue