Fixed conversion comment showing up when removing value. Removed Dr. Dre from surgeon suggestions (lol).
This commit is contained in:
parent
2bdb3d24a0
commit
d975d2b6c7
|
@ -376,7 +376,6 @@
|
|||
|
||||
<datalist id="surgeons">
|
||||
<option value="Dr. Revis" />
|
||||
<option value="Dr. Dre" />
|
||||
</datalist>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue