fixed conditional rendering logic
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 7m27s
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 7m27s
This commit is contained in:
@@ -29,17 +29,23 @@ const StatsList = ({
|
|||||||
{title}
|
{title}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Text textAlign="center" fontSize="sm" color="whiteAlpha.800">
|
<Text textAlign="center" fontSize="sm" color="whiteAlpha.800">
|
||||||
{groups ? "Updates every 24 hours" : "At time of page load"}
|
{groups !== undefined
|
||||||
|
? groups >= 0
|
||||||
|
? "Updates every 24 hours"
|
||||||
|
: ""
|
||||||
|
: "At time of page load"}
|
||||||
</Text>
|
</Text>
|
||||||
</VStack>
|
</VStack>
|
||||||
<Flex w="80%" flexDirection={{ base: "column", md: "row" }} gap={4}>
|
<Flex w="80%" flexDirection={{ base: "column", md: "row" }} gap={4}>
|
||||||
{groups && groups >= 0 ? (
|
{groups !== undefined ? (
|
||||||
<SingleStatComponent
|
groups >= 0 ? (
|
||||||
loading={loading}
|
<SingleStatComponent
|
||||||
title="Groups Bot Helped"
|
loading={loading}
|
||||||
error={error}
|
title="Groups Bot Helped"
|
||||||
stat={groups}
|
error={error}
|
||||||
/>
|
stat={groups}
|
||||||
|
/>
|
||||||
|
) : null
|
||||||
) : null}
|
) : null}
|
||||||
<SingleStatComponent
|
<SingleStatComponent
|
||||||
loading={loading}
|
loading={loading}
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ interface NextContext {
|
|||||||
params: Promise<Record<string, string>>;
|
params: Promise<Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(process.env);
|
||||||
|
|
||||||
const environment = process.env.NODE_ENV || "development";
|
const environment = process.env.NODE_ENV || "development";
|
||||||
|
|
||||||
const isValidApiKey = (apiKey: string): boolean => {
|
const isValidApiKey = (apiKey: string): boolean => {
|
||||||
|
|||||||
Reference in New Issue
Block a user