Fixed conversion comment showing up when removing value. Removed Dr. Dre from surgeon suggestions (lol).
This commit is contained in:
@@ -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`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user