diff --git a/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/setting/PlatformSettingScreen.kt b/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/setting/PlatformSettingScreen.kt index ce37336..0c59f84 100644 --- a/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/setting/PlatformSettingScreen.kt +++ b/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/setting/PlatformSettingScreen.kt @@ -116,7 +116,7 @@ fun PlatformSettingScreen( SettingItem( modifier = Modifier.height(64.dp), title = stringResource(R.string.api_key), - description = token?.let { stringResource(R.string.token_set, it[0]) } ?: stringResource(R.string.token_not_set), + description = if token.isNullOrEmpty() stringResource(R.string.token_not_set) else stringResource(R.string.token_set, token[0]), enabled = enabled, onItemClick = settingViewModel::openApiTokenDialog, showTrailingIcon = false,