Skip to content

Commit fbb12d2

Browse files
committed
Make price fields optional
1 parent f4f72f5 commit fbb12d2

File tree

1 file changed

+3
-3
lines changed
  • common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/compendium/trapping

1 file changed

+3
-3
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/compendium/trapping/TrappingDialog.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,17 +439,17 @@ private class PriceFormData(
439439
crowns =
440440
inputValue(
441441
money?.getCrowns()?.toString() ?: "",
442-
Rules.NonNegativeInteger(),
442+
Rules.ifNotBlank(Rules.NonNegativeInteger()),
443443
),
444444
shillings =
445445
inputValue(
446446
money?.getShillings()?.toString() ?: "",
447-
Rules.NonNegativeInteger(),
447+
Rules.ifNotBlank(Rules.NonNegativeInteger()),
448448
),
449449
pennies =
450450
inputValue(
451451
money?.getPennies()?.toString() ?: "",
452-
Rules.NonNegativeInteger(),
452+
Rules.ifNotBlank(Rules.NonNegativeInteger()),
453453
),
454454
)
455455
}

0 commit comments

Comments
 (0)