fix(pages): stats being null

This commit is contained in:
diced 2021-06-23 12:18:10 -07:00
parent 166087e33c
commit ecef854d23
No known key found for this signature in database
GPG key ID: 85AB64C74535D76E

View file

@ -205,7 +205,8 @@ export default function Dashboard() {
onRowsPerPageChange={handleChangeRowsPerPage}
/>
</Card>
{stats && (
<>
<Card name='Images per User' sx={{ height: '100%', my: 2 }} elevation={0} variant='outlined'>
<StatTable
columns={[
@ -226,5 +227,7 @@ export default function Dashboard() {
/>
</Card>
</>
)}
</>
);
}