diff --git a/client/src/components/ApplicationReview/index.tsx b/client/src/components/ApplicationReview/index.tsx index d31b489..9277c72 100644 --- a/client/src/components/ApplicationReview/index.tsx +++ b/client/src/components/ApplicationReview/index.tsx @@ -56,7 +56,9 @@ const ApplicationReview = ({ } const application: Application = { - phoneNumber: responses.phoneNumber, + phoneNumber: (responses.phoneNumber as string).startsWith('+') + ? responses.phoneNumber + : `+${responses.phoneNumber}`, age: responses.age, university: responses.university, levelOfStudy: responses.levelOfStudy, @@ -92,6 +94,7 @@ const ApplicationReview = ({ // Remove saved data await localforage.removeItem(SAVED_RESPONSES_KEY); + router.refresh(); router.push(next); }} > diff --git a/client/src/components/DashboardStatus/index.tsx b/client/src/components/DashboardStatus/index.tsx index ed68e0f..7875a44 100644 --- a/client/src/components/DashboardStatus/index.tsx +++ b/client/src/components/DashboardStatus/index.tsx @@ -26,14 +26,22 @@ const statusText = (status: string) => { return formatted.charAt(0).toUpperCase() + formatted.slice(1); }; +const getStatusDescription = (status: string) => { + switch (status) { + case 'SUBMITTED': + return 'Congrats on applying to DiamondHacks!'; + default: + return 'Our records have indicated that you have not started on your application. Click below to go on your hacker journey!'; + } +}; + const DashboardStatus = ({ status, timeline }: DashboardStatusProps) => { // TODO return ( <>