Skip to content

Commit

Permalink
fix: updated minor issue with formatting set token
Browse files Browse the repository at this point in the history
  • Loading branch information
GarthDB committed Jun 15, 2022
1 parent f135efc commit 22f4633
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/drover-json-formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,17 @@ const formatter = ({ dictionary, platform, file, options }) => {
darkest: {},
};
result.drover.dimensions = {};
console.log(result);
dictionary.allTokens.forEach((token) => {
if (dictionary.usesReference(token)) {
if (
token.value.hasOwnProperty("sets") &&
token.value.sets.hasOwnProperty("spectrum") &&
token.value.sets.hasOwnProperty("express")
) {
token.value = token.value.sets.spectrum;
}
if (helpers.isASet(token.value)) {
if (
token.value.sets.hasOwnProperty("spectrum") &&
token.value.sets.hasOwnProperty("express")
) {
token.value = token.value.sets.spectrum;
}
const newValue = getValue(token, dictionary);

if (
newValue.sets.hasOwnProperty("light") &&
newValue.sets.hasOwnProperty("dark") &&
Expand Down

0 comments on commit 22f4633

Please sign in to comment.