Skip to content

Commit ed98925

Browse files
committed
fix: avoid a redirect to the thankyou page url if present on expired pending order
1 parent d8762e7 commit ed98925

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

components/composite/StepExpired/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ interface Props {
1616
export const StepExpired: React.FC<Props> = ({
1717
logoUrl,
1818
companyName,
19-
thankyouPageUrl = null,
2019
expirationInfo,
2120
}) => {
2221
const { t } = useTranslation()
@@ -25,12 +24,6 @@ export const StepExpired: React.FC<Props> = ({
2524
const topRef = useRef<HTMLDivElement | null>(null)
2625
const returnExpireUrl = expirationInfo?.return_url || ctx?.returnUrl
2726

28-
useEffect(() => {
29-
if (thankyouPageUrl != null) {
30-
window.location.href = thankyouPageUrl
31-
}
32-
}, [thankyouPageUrl])
33-
3427
useEffect(() => {
3528
if (topRef.current != null) {
3629
topRef.current.scrollIntoView({

0 commit comments

Comments
 (0)