Skip to content

Commit ff77962

Browse files
committed
fix: build
1 parent 37a6d99 commit ff77962

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/components/PlatformRedirect.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const PlatformRedirect = ({ destinations }: PlatformRedirectProps) => {
88
console.log("on iOS")
99
const dest = destinations.find(dest => dest.platform === "ios")
1010
window.location.href = dest?.value || "#"
11-
return
11+
return null
1212
}
1313

1414
if (navigator && /Android/i.test(navigator.userAgent)) {
1515
console.log("on Android")
1616
const dest = destinations.find(dest => dest.platform === "android")
1717
window.location.href = dest?.value || "#"
18-
return
18+
return null
1919
}
2020

2121
if (window && Array.isArray(destinations)) {

0 commit comments

Comments
 (0)