From d4f0a03a26fe329d031322f91360794b4bb8172b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 31 Aug 2023 14:39:40 +0800 Subject: [PATCH] fixed selecting a spool with filament weight but no spool switching to the remaining weight option --- client/src/pages/spools/create.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/src/pages/spools/create.tsx b/client/src/pages/spools/create.tsx index ab79a14..937fabb 100644 --- a/client/src/pages/spools/create.tsx +++ b/client/src/pages/spools/create.tsx @@ -72,11 +72,15 @@ export const SpoolCreate: React.FC= 3) { + if (!(newFilamentWeight && newSpoolWeight)) { + setWeightToEnter(2); + } } - if (!newFilamentWeight) { - setWeightToEnter(1); + if (weightToEnter >= 2) { + if (!newFilamentWeight) { + setWeightToEnter(1); + } } };