From 33a8dbd4cb50d0ec8bb257ecc2c1a26c6e7292ff Mon Sep 17 00:00:00 2001 From: Shrikant Giridhar Date: Sun, 14 Jan 2024 22:02:17 -0500 Subject: [PATCH 1/2] StepHitPoints: Remove leading '1' from the hitpoints edit display The StepHitPoints component displays a leading '1' to the HP display which works fine for level 1 characters but as the character's hit dice increase this results in erroneous display e.g. 12d4 for a 2nd level magic user. This fix removes the leading '1'. This fixes the issue for levels 2+ but results in the HD for 1st level characters showing without a number prefix. --- src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx b/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx index 76138b3f..ed8df289 100644 --- a/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx +++ b/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx @@ -42,7 +42,7 @@ const StepHitPoints: React.FC< From 683edde9485cb984f9956130a11a6f174ce6be7e Mon Sep 17 00:00:00 2001 From: "J. Garrett Vorbeck" Date: Sun, 14 Jan 2024 22:22:54 -0500 Subject: [PATCH 2/2] Update StepHitPoints.tsx --- .../PageNewCharacter/StepHitPoints/StepHitPoints.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx b/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx index ed8df289..4bfcba5d 100644 --- a/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx +++ b/src/components/PageNewCharacter/StepHitPoints/StepHitPoints.tsx @@ -42,7 +42,8 @@ const StepHitPoints: React.FC<