Skip to content

Commit 220f6c5

Browse files
Don't show zip build if doesn't exist (#8)
1 parent 6211a0b commit 220f6c5

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/pages/download.page.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,17 @@ function Page(pageProps: {
122122
</HStack>
123123
</VStack>
124124
</Button>
125-
<Text color="white">
126-
Or download the{' '}
127-
<Link
128-
color="blue.300"
129-
href={zipBuild?.browser_download_url}
130-
>
131-
portable version (zip)
132-
</Link>
133-
</Text>
125+
{zipBuild != null && (
126+
<Text color="white">
127+
Or download the{' '}
128+
<Link
129+
color="blue.300"
130+
href={zipBuild?.browser_download_url}
131+
>
132+
portable version (zip)
133+
</Link>
134+
</Text>
135+
)}
134136
</VStack>
135137
<Box
136138
color="white"

0 commit comments

Comments
 (0)