Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-gupta7 committed Jan 9, 2025
1 parent ea1ee0c commit 95966e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/tokens-studio-for-figma/src/plugin/pullVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export default async function pullVariables(options: PullVariablesOptions): Prom
const uiSettings = await figma.clientStorage.getAsync('uiSettings');
const settings = JSON.parse(await uiSettings);
if (settings?.baseFontSize) {
const baseFontSizeValue = typeof settings.baseFontSize === 'number'
? settings.baseFontSize
const baseFontSizeValue = typeof settings.baseFontSize === 'number'
? settings.baseFontSize
: parseFloat(settings.baseFontSize);

baseRem = !isNaN(baseFontSizeValue) ? Number(baseFontSizeValue) : 16;
}
}
Expand Down

0 comments on commit 95966e4

Please sign in to comment.