Skip to content

Commit

Permalink
bugfix for no tokens and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Jul 25, 2023
1 parent d6ad166 commit 5589ee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utilities/prepareExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const createTypographyTokens = (tokens: internalTokenInterface[], settings) => {
}

export const prepareExport = (tokens: string, settings: Settings) => {
if (tokens.length === 0) tokens = '{}'
// parse json string
let tokenArray: internalTokenInterface[] = JSON.parse(tokens)
// duplicate font if typography is true && format = standard
Expand Down

0 comments on commit 5589ee7

Please sign in to comment.