From 84bab00b6096a38146898cf0193224f3574eaf9d Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Fri, 15 Jan 2021 19:38:12 +0200 Subject: [PATCH] team page revalidate --- pages/t/[team].tsx | 1 + pages/t/index.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/t/[team].tsx b/pages/t/[team].tsx index 7b3c460b2..d19907c36 100644 --- a/pages/t/[team].tsx +++ b/pages/t/[team].tsx @@ -305,6 +305,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => { props: { team, }, + revalidate: 1, }; }; diff --git a/pages/t/index.tsx b/pages/t/index.tsx index c016913bd..6defca446 100644 --- a/pages/t/index.tsx +++ b/pages/t/index.tsx @@ -129,7 +129,9 @@ const TeamsPage: React.FC = ({ teams }) => { {team.teamXP > 2000 && ( - {team.teamXP.toFixed(1)} + + {team.teamXP.toFixed(1).replace(".0", "")} + )} {team.recruitingPost && (