Skip to content

Commit

Permalink
fix(colors): remove style type from generate command
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Feb 11, 2021
1 parent 613a16f commit b95f2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sketch/src/commands/colors/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function generate() {
sharedStyles,
(sharedStyle) => {
const { name } = sharedStyle;
const [_category, _type, swatch] = name.split(' / ');
const [_category, swatch] = name.split(' / ');
switch (swatch) {
case 'black':
return 'black';
Expand All @@ -43,7 +43,7 @@ export function generate() {
let Y_OFFSET = 0;

const swatches = groupByKey(colors, (sharedStyle) => {
const [_category, _type, swatch] = sharedStyle.name.split('/');
const [_category, swatch] = sharedStyle.name.split('/');
return swatch;
});

Expand Down

0 comments on commit b95f2dc

Please sign in to comment.