From 0b131d034d843fa0889ccb6f23de9ba47bbdebe4 Mon Sep 17 00:00:00 2001 From: Jordan W <229931303+jordanw-hub@users.noreply.github.com> Date: Mon, 2 Nov 2026 17:16:37 -1000 Subject: [PATCH] Don't override 'good' condition with 'fair' --- src/lib/dbActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dbActions.ts b/src/lib/dbActions.ts index 18aceec..be73f0c 100644 --- a/src/lib/dbActions.ts +++ b/src/lib/dbActions.ts @@ -17,7 +17,7 @@ export async function addStuff(stuff: { name: string; quantity: number; owner: s condition = 'poor'; } else if (stuff.condition === 'excellent') { condition = 'excellent'; - } else { + } else if (stuff.condition === 'fair') { condition = 'fair'; } await prisma.stuff.create({