Fixed conversion comment showing up when removing value. Removed Dr. Dre from surgeon suggestions (lol).

This commit is contained in:
DebaucheryLibrarian 2024-10-23 03:28:23 +02:00
parent 2bdb3d24a0
commit d975d2b6c7
2 changed files with 1 additions and 2 deletions

View File

@ -376,7 +376,6 @@
<datalist id="surgeons"> <datalist id="surgeons">
<option value="Dr. Revis" /> <option value="Dr. Revis" />
<option value="Dr. Dre" />
</datalist> </datalist>
</div> </div>

View File

@ -806,7 +806,7 @@ export async function createActorRevision(actorId, {
if (['cup', 'bust', 'waist', 'hip'].includes(key)) { if (['cup', 'bust', 'waist', 'hip'].includes(key)) {
const convertedValue = convertFigure(key, value, options.figureUnits); const convertedValue = convertFigure(key, value, options.figureUnits);
const conversionComment = convertedValue === value const conversionComment = !value || convertedValue === value
? null ? null
: `${key} converted from ${value} ${options.figureUnits?.toUpperCase() || 'US'} to ${convertedValue} US`; : `${key} converted from ${value} ${options.figureUnits?.toUpperCase() || 'US'} to ${convertedValue} US`;