update,
This commit is contained in:
@@ -29,7 +29,7 @@ function ActiveUserCount(): React.JSX.Element {
|
||||
const tempCount = await getAllUserMetasCount();
|
||||
setAmount(tempCount);
|
||||
} catch (error) {
|
||||
setAmount(-9);
|
||||
setAmount(-99);
|
||||
setErrorDetail(JSON.stringify(error));
|
||||
setShowError(true);
|
||||
} finally {
|
||||
@@ -40,7 +40,14 @@ function ActiveUserCount(): React.JSX.Element {
|
||||
}, []);
|
||||
|
||||
if (showLoading) {
|
||||
return <LoadingSummary diff={10} icon={UsersIcon} title={t('用戶數量')} trend="up" />;
|
||||
return (
|
||||
<LoadingSummary
|
||||
diff={10}
|
||||
icon={UsersIcon}
|
||||
title={t('用戶數量')}
|
||||
trend="up"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
if (showError) return <div>{errorDetail}</div>;
|
||||
|
Reference in New Issue
Block a user