Skip to content

Commit 470fcaf

Browse files
authored
Merge pull request #262 from fmasa/fix-create-char
Fix visibility of 'Add Character' button
2 parents 77c11bd + df0fac0 commit 470fcaf

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/character/CharacterPickerScreen.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,21 @@ data class CharacterPickerScreen(
155155
OutlinedButton(onClick = { unassignedCharactersDialogVisible = true }) {
156156
Text(stringResource(Str.character_button_link).uppercase())
157157
}
158+
}
158159

159-
val userId = LocalUser.current.id
160-
Button(
161-
onClick = {
162-
navigation.replace(
163-
CharacterCreationScreen(
164-
partyId,
165-
CharacterType.PLAYER_CHARACTER,
166-
userId = userId,
167-
)
160+
val userId = LocalUser.current.id
161+
Button(
162+
onClick = {
163+
navigation.replace(
164+
CharacterCreationScreen(
165+
partyId,
166+
CharacterType.PLAYER_CHARACTER,
167+
userId = userId,
168168
)
169-
}
170-
) {
171-
Text(stringResource(Str.character_button_add).uppercase())
169+
)
172170
}
171+
) {
172+
Text(stringResource(Str.character_button_add).uppercase())
173173
}
174174
}
175175
}

0 commit comments

Comments
 (0)