From 32ce2f9169bf807724a9428c97d7e9722be0839c Mon Sep 17 00:00:00 2001 From: David Westgate Date: Sun, 9 Mar 2025 16:04:20 -0700 Subject: [PATCH] change default chip selections --- components/ChipsSelector.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ChipsSelector.tsx b/components/ChipsSelector.tsx index 4344e93..b77d54b 100644 --- a/components/ChipsSelector.tsx +++ b/components/ChipsSelector.tsx @@ -14,6 +14,7 @@ import styles from "@/styles/styles"; import i18n from "@/i18n/i18n"; const colors: ColorValue[] = ["white", "red", "green", "blue", "black"]; +const defaults = [100, 50, 50, 50, 50]; const ChipInputModal = ({ showModal, @@ -152,7 +153,7 @@ const ChipsSelector = ({ } else if (numberOfChips > totalChipsCount.length) { for (let colorIndex = 0; colorIndex < numberOfChips; ++colorIndex) { if (colorIndex >= newTotalChipsCount.length) { - const defaultTotal = 100 - colorIndex * 20; + const defaultTotal = defaults[colorIndex]; newTotalChipsCount.push(defaultTotal); } }