Skip to content

Commit 20c99a8

Browse files
committed
fix: also redirect when country param is completely invalid on manteca withdraw
1 parent 6a4fb29 commit 20c99a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/app/(mobile-ui)/withdraw/manteca

src/app/(mobile-ui)/withdraw/manteca/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export default function MantecaWithdrawFlow() {
432432

433433
// redirect to withdraw page if country is not supported by manteca
434434
useEffect(() => {
435-
if (selectedCountry && !MANTECA_COUNTRIES_CONFIG[selectedCountry.id]) {
435+
if (!selectedCountry || !MANTECA_COUNTRIES_CONFIG[selectedCountry.id]) {
436436
router.replace('/withdraw')
437437
}
438438
}, [selectedCountry, router])

0 commit comments

Comments
 (0)