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({