diff --git a/src/app/components/StatusBadge.tsx b/src/app/components/StatusBadge.tsx index ec66279d..4f67665b 100644 --- a/src/app/components/StatusBadge.tsx +++ b/src/app/components/StatusBadge.tsx @@ -55,7 +55,7 @@ const statusColor: { propertyHoverText: "This property is currently in scoping", }, assessment: { - class: "bg-emerald-400 hover:bg-emerald-500", + class: "bg-emerald-400 hover:bg-emerald-500 max-w-full text-center", text: "Non-invasive Assessment", hoverText: "This portfolio is currently in the assessment stage", propertyHoverText: "This property is currently in the assessment stage", diff --git a/src/app/components/home/Card.tsx b/src/app/components/home/Card.tsx index 74a0c166..02b5e451 100644 --- a/src/app/components/home/Card.tsx +++ b/src/app/components/home/Card.tsx @@ -13,7 +13,7 @@ const styles = { imageWrapper: "h-56 rounded-2xl overflow-hidden flex items-center", wrapperAnime: "transition-all duration-500 ease-in-out", image: "object-cover mx-auto", - textWrapper: "pt-3 pb-3 w-full px-4 flex justify-center items-center max-h-16 my-auto text-red-500", + textWrapper: "pt-3 pb-3 w-full px-4 flex justify-center items-center max-h-16 my-auto text-red-500 text-center", }; interface CardProps { diff --git a/src/app/home/page.tsx b/src/app/home/page.tsx index 6f10eee1..e0e191d7 100644 --- a/src/app/home/page.tsx +++ b/src/app/home/page.tsx @@ -7,6 +7,7 @@ import { redirect } from "next/navigation"; const Home = async () => { const user = await getServerSession(AuthOptions); + if (!user?.user) { console.error("User not found"); @@ -15,10 +16,11 @@ const Home = async () => { const portfolios = await getPortfolios(user.user.dbId); + return ( <>