From e6dadbb465c32a340a0e7d717af21faf7c17cc06 Mon Sep 17 00:00:00 2001 From: ingawei <46611122+ingawei@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:41:54 -0800 Subject: [PATCH] reroute (#2184) --- love/components/lover-answers.tsx | 17 +++++++++++------ love/components/optional-lover-form.tsx | 3 ++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/love/components/lover-answers.tsx b/love/components/lover-answers.tsx index 26344cc4fb..f2a6d66695 100644 --- a/love/components/lover-answers.tsx +++ b/love/components/lover-answers.tsx @@ -75,12 +75,17 @@ export function LoverAnswers(props: { ) }) ) : isCurrentUser ? ( - - - - + + No answers yet. Answer some questions to help your matches get to + know you! + {/* */} + + {/* */} ) : ( Nothing yet :( diff --git a/love/components/optional-lover-form.tsx b/love/components/optional-lover-form.tsx index ea923bebe1..31268254ea 100644 --- a/love/components/optional-lover-form.tsx +++ b/love/components/optional-lover-form.tsx @@ -44,7 +44,8 @@ export const OptionalLoveUserForm = (props: { if (res) { console.log('success') track('submit love optional profile') - router.push('/love-questions') + if (user) router.push(`/${user.username}`) + else router.push('/') } } const [uploadingImages, setUploadingImages] = useState(false)