Skip to content

Commit

Permalink
fix empty string on token
Browse files Browse the repository at this point in the history
  • Loading branch information
rhjdvsgsgks authored Jan 26, 2025
1 parent 509cbff commit a99604a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a99604a

Please sign in to comment.