Skip to content

Commit 954d22e

Browse files
committed
onboarding: fix final step link
1 parent e47ec60 commit 954d22e

File tree

1 file changed

+10
-3
lines changed
  • src/apps/onboarding/src/pages/personalization

1 file changed

+10
-3
lines changed

src/apps/onboarding/src/pages/personalization/index.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { FC, MutableRefObject, useEffect, useRef } from 'react'
88
import classNames from 'classnames'
99

1010
import { Button, PageDivider } from '~/libs/ui'
11+
import { EnvironmentConfig } from '~/config'
1112

1213
import { ProgressBar } from '../../components/progress-bar'
1314
import styles from './styles.module.scss'
@@ -54,7 +55,11 @@ const PagePersonalizationContent: FC<{
5455

5556
useEffect(() => {
5657
if (!loading && !shouldSavingData.current && !!shouldNavigateTo.current) {
57-
navigate(shouldNavigateTo.current)
58+
if (shouldNavigateTo.current.startsWith('../')) {
59+
navigate(shouldNavigateTo.current)
60+
} else {
61+
window.location.href = shouldNavigateTo.current
62+
}
5863
}
5964
/* eslint-disable react-hooks/exhaustive-deps */
6065
}, [loading])
@@ -131,9 +136,11 @@ const PagePersonalizationContent: FC<{
131136
iconToLeft
132137
onClick={() => {
133138
if (loading) {
134-
shouldNavigateTo.current = '../account-details'
139+
shouldNavigateTo.current
140+
= `${EnvironmentConfig.USER_PROFILE_URL}/${props.memberInfo?.handle}`
135141
} else {
136-
navigate('../account-details')
142+
window.location.href
143+
= `${EnvironmentConfig.USER_PROFILE_URL}/${props.memberInfo?.handle}`
137144
}
138145
}}
139146
>

0 commit comments

Comments
 (0)