@dicebear/adventurer
Version:
Avatar style for DiceBear
24 lines (23 loc) • 711 B
JavaScript
/**
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
*
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
* File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
*/
export function onPostCreate({ prng, options, components, colors }) {
var _a;
const invisibleEarringsHair = [
'long01',
'long04',
'long05',
'long06',
'long20',
'long22',
'long24',
'long26',
];
if (((_a = components.hair) === null || _a === void 0 ? void 0 : _a.name) &&
invisibleEarringsHair.includes(components.hair.name)) {
components.earrings = undefined;
}
}