We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a6d99 commit ff77962Copy full SHA for ff77962
lib/components/PlatformRedirect.tsx
@@ -8,14 +8,14 @@ const PlatformRedirect = ({ destinations }: PlatformRedirectProps) => {
8
console.log("on iOS")
9
const dest = destinations.find(dest => dest.platform === "ios")
10
window.location.href = dest?.value || "#"
11
- return
+ return null
12
}
13
14
if (navigator && /Android/i.test(navigator.userAgent)) {
15
console.log("on Android")
16
const dest = destinations.find(dest => dest.platform === "android")
17
18
19
20
21
if (window && Array.isArray(destinations)) {
0 commit comments