fix build errors
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 3m19s
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 3m19s
This commit is contained in:
@@ -85,14 +85,14 @@ export default function Home() {
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (!thirtyDayStatsFetching && thirtyDayStats.getStatsRange) {
|
||||
if (
|
||||
!thirtyDayStatsFetching &&
|
||||
thirtyDayStats.getStatsRange &&
|
||||
!thirtyDayStatsError
|
||||
) {
|
||||
setLineChartArrState(lineChartArr(thirtyDayStats.getStatsRange));
|
||||
}
|
||||
}, [
|
||||
thirtyDayStats.getStatsRange,
|
||||
thirtyDayStatsError,
|
||||
thirtyDayStatsFetching
|
||||
]);
|
||||
}, [thirtyDayStats, thirtyDayStatsError, thirtyDayStatsFetching]);
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
@@ -152,6 +152,7 @@ export default function Home() {
|
||||
</VStack>
|
||||
</VStack>
|
||||
<VStack gap={10} w="100%">
|
||||
{totalGroups && (
|
||||
<StatsList
|
||||
title="Total Stats"
|
||||
loading={totalStatsFetching || totalGroupsFetching}
|
||||
@@ -161,6 +162,8 @@ export default function Home() {
|
||||
commands={totalStats.getTotalStats.commandResponses}
|
||||
triggers={totalStats.getTotalStats.timesTriggered}
|
||||
/>
|
||||
)}
|
||||
{todayStats && (
|
||||
<StatsList
|
||||
title="Today's Stats"
|
||||
loading={todaysStatsFetching}
|
||||
@@ -169,6 +172,7 @@ export default function Home() {
|
||||
commands={todayStats.getTodayStats.commandResponses}
|
||||
triggers={todayStats.getTodayStats.timesTriggered}
|
||||
/>
|
||||
)}
|
||||
</VStack>
|
||||
<VStack w="95%" gap="5vh">
|
||||
<VStack gap={1}>
|
||||
|
||||
Reference in New Issue
Block a user