Skip to content

Commit 6a511ad

Browse files
committed
Fix cond hook
1 parent d55b04d commit 6a511ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

web/components/about-settings.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ const LoadedAboutSettings = (props: {
2222
const {} = props
2323

2424
return <Col className={'custom-link'}>
25-
<WebBuildInfo/>
26-
<AndroidInfo/>
25+
{IS_VERCEL && <WebBuildInfo/>}
26+
{Capacitor.isNativePlatform() && <AndroidInfo/>}
2727
<BackendInfo/>
2828
<RuntimeInfo/>
2929
</Col>
3030
}
3131

3232
const WebBuildInfo = () => {
33-
if (!IS_VERCEL) return
3433
const env = process.env.NEXT_PUBLIC_VERCEL_ENV
3534
const msg = process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGE
3635
const sha = process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA
@@ -46,7 +45,6 @@ const WebBuildInfo = () => {
4645
}
4746

4847
const AndroidInfo = () => {
49-
if (!Capacitor.isNativePlatform()) return
5048
const liveUpdateInfo = {
5149
commitSha: process.env.CAPAWESOME_BUILD_GIT_COMMIT_SHA || 'N/A',
5250
commitMessage: process.env.CAPAWESOME_BUILD_GIT_COMMIT_MESSAGE || 'N/A',

0 commit comments

Comments
 (0)