team page revalidate

This commit is contained in:
Kalle (Sendou)
2021-01-15 19:38:12 +02:00
parent 9e067f2b51
commit 84bab00b60
2 changed files with 4 additions and 1 deletions

View File

@@ -305,6 +305,7 @@ export const getStaticProps: GetStaticProps<Props> = async ({ params }) => {
props: {
team,
},
revalidate: 1,
};
};

View File

@@ -129,7 +129,9 @@ const TeamsPage: React.FC<Props> = ({ teams }) => {
{team.teamXP > 2000 && (
<Flex align="center" mt={2}>
<Image src={`/layout/xsearch.png`} height={24} width={24} />
<SubText ml={1}>{team.teamXP.toFixed(1)}</SubText>
<SubText ml={1}>
{team.teamXP.toFixed(1).replace(".0", "")}
</SubText>
</Flex>
)}
{team.recruitingPost && (