File tree Expand file tree Collapse file tree
apps/mobile/src/features/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -425,7 +425,10 @@ function AppSettingsSection() {
425425 const icon = useThemeColor ( "--color-icon" ) ;
426426
427427 const version = Constants . expoConfig ?. version ?? "0.0.0" ;
428- const variant = ( Constants . expoConfig ?. extra ?. appVariant as string | undefined ) ?? "development" ;
428+ // app.config.ts resolves unknown/missing APP_VARIANT to "production", so a
429+ // missing value here must not be mislabeled as a development build.
430+ const rawVariant = Constants . expoConfig ?. extra ?. appVariant ;
431+ const variant = typeof rawVariant === "string" ? rawVariant : "production" ;
429432 const variantLabel = variant === "production" ? "" : capitalize ( variant ) ;
430433 const versionLabel = variantLabel ? `${ version } · ${ variantLabel } ` : version ;
431434 // Which JS is actually running: the bundle shipped in the binary, or an OTA
You can’t perform that action at this time.
0 commit comments