From d975d2b6c74e7d5c6a0dfd55338f76ebcc534fea Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 23 Oct 2024 03:28:23 +0200 Subject: [PATCH] Fixed conversion comment showing up when removing value. Removed Dr. Dre from surgeon suggestions (lol). --- pages/actors/@actorId/edit/+Page.vue | 1 - src/actors.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/actors/@actorId/edit/+Page.vue b/pages/actors/@actorId/edit/+Page.vue index bcfd5cd..9fc95ab 100644 --- a/pages/actors/@actorId/edit/+Page.vue +++ b/pages/actors/@actorId/edit/+Page.vue @@ -376,7 +376,6 @@ diff --git a/src/actors.js b/src/actors.js index 394f596..5fd1574 100644 --- a/src/actors.js +++ b/src/actors.js @@ -806,7 +806,7 @@ export async function createActorRevision(actorId, { if (['cup', 'bust', 'waist', 'hip'].includes(key)) { const convertedValue = convertFigure(key, value, options.figureUnits); - const conversionComment = convertedValue === value + const conversionComment = !value || convertedValue === value ? null : `${key} converted from ${value} ${options.figureUnits?.toUpperCase() || 'US'} to ${convertedValue} US`;