Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei authored Nov 7, 2023
1 parent 8f607a2 commit e6dadbb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 11 additions & 6 deletions love/components/lover-answers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ export function LoverAnswers(props: {
)
})
) : isCurrentUser ? (
<Col className={'mt-4 w-full items-center'}>
<Row>
<Button onClick={() => router.push('love-questions')}>
Answer questions
</Button>
</Row>
<Col className={'text-ink-600 w-full gap-2 text-sm'}>
No answers yet. Answer some questions to help your matches get to
know you!
{/* <Row> */}
<Button
color="gradient"
onClick={() => router.push('love-questions')}
>
Answer questions
</Button>
{/* </Row> */}
</Col>
) : (
<span className={'text-ink-500 text-sm'}>Nothing yet :(</span>
Expand Down
3 changes: 2 additions & 1 deletion love/components/optional-lover-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e6dadbb

Please sign in to comment.