We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8762e7 commit ed98925Copy full SHA for ed98925
1 file changed
components/composite/StepExpired/index.tsx
@@ -16,7 +16,6 @@ interface Props {
16
export const StepExpired: React.FC<Props> = ({
17
logoUrl,
18
companyName,
19
- thankyouPageUrl = null,
20
expirationInfo,
21
}) => {
22
const { t } = useTranslation()
@@ -25,12 +24,6 @@ export const StepExpired: React.FC<Props> = ({
25
24
const topRef = useRef<HTMLDivElement | null>(null)
26
const returnExpireUrl = expirationInfo?.return_url || ctx?.returnUrl
27
28
- useEffect(() => {
29
- if (thankyouPageUrl != null) {
30
- window.location.href = thankyouPageUrl
31
- }
32
- }, [thankyouPageUrl])
33
-
34
useEffect(() => {
35
if (topRef.current != null) {
36
topRef.current.scrollIntoView({
0 commit comments