Skip to content

Commit

Permalink
Merge pull request #186 from fmasa/hardy-checkbox
Browse files Browse the repository at this point in the history
Hide Hardy checkbox for Characters without this mechanism
  • Loading branch information
fmasa authored Sep 6, 2023
2 parents 89ab222 + 9580692 commit 3fa26db
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ fun MaxWoundsSection(character: Character, screenModel: CharacterScreenModel) {
placeholder = stringResource(Str.points_auto_max_wounds_placeholder),
)

if (formData.hardyTalent.value) {
UserTipCard(UserTip.HARDY_TALENTS)
}
if (character.hasHardyTalent) {
if (formData.hardyTalent.value) {
UserTipCard(UserTip.HARDY_TALENTS)
}

CheckboxWithText(
text = stringResource(Str.points_label_hardy),
checked = formData.hardyTalent.value,
onCheckedChange = { formData.hardyTalent.value = it }
)
CheckboxWithText(
text = stringResource(Str.points_label_hardy),
checked = formData.hardyTalent.value,
onCheckedChange = { formData.hardyTalent.value = it }
)
}
}
}
}
Expand Down

0 comments on commit 3fa26db

Please sign in to comment.