Skip to content

Commit 09d9f4d

Browse files
authored
Fix color de-duping (#115)
Co-authored-by: Dave Stewart <[email protected]>
1 parent f36be18 commit 09d9f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/common/retrieveUI/retrieveColors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const retrieveGenericSolidUIColors = (
2525
selectionColors.paints.forEach((paint) => {
2626
const fill = convertSolidColor(paint, framework);
2727
if (fill) {
28-
const exists = colors.find(col => col.colorName === fill.colorName)
28+
const exists = colors.find(col => col.exportValue === fill.exportValue)
2929
if (!exists) {
3030
colors.push(fill);
3131
}

0 commit comments

Comments
 (0)