diff --git a/components/Game/Header/header.components.tsx b/components/Game/Header/header.components.tsx index db926a6..ebce91e 100644 --- a/components/Game/Header/header.components.tsx +++ b/components/Game/Header/header.components.tsx @@ -116,7 +116,13 @@ export const PlayerBox: React.FC<{ updateSidekickQuantity(number)} + callback={(number: number) => { + if (sidekick?.quantity && sidekick?.quantity <= 1) { + updateHealth(number, "sidekick"); + } else { + updateSidekickQuantity(number); + } + }} number={ sidekick.quantity <= 1 ? sidekick.hp ?? 0