Skip to content

Commit

Permalink
fix: fix rem function
Browse files Browse the repository at this point in the history
  • Loading branch information
dkireev committed Oct 8, 2020
1 parent 1d20c03 commit ba7d583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/rem/rem.ts
Expand Up @@ -3,7 +3,7 @@ import { sharedTokens } from '@heathmont/moon-themes';

const rem = (value: string | number, baseFontSize: string | number = 16) => {
if (
![10, 14, 18, '10px', '14px', '18px'].includes(value) ||
![10, 14, 18, '10px', '14px', '18px'].includes(value) &&
(typeof value === 'number' && value % 4 !== 0)
) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit ba7d583

Please sign in to comment.