Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
fix: undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj-10 committed May 30, 2023
1 parent 40cfe31 commit 1b737fd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ export const preprocess = (originalStyle: any) => {
const style = originalStyle || {};
const nextStyle: any = {};
for (const originalProp in style) {
const originalValue = style[originalProp]
? style[originalProp]
: getResetValue(originalProp, style[originalProp]);
const originalValue =
typeof style[originalProp] !== 'undefined'
? style[originalProp]
: getResetValue(originalProp, style[originalProp]);

let prop = originalProp;
let value = originalValue;
Expand Down

0 comments on commit 1b737fd

Please sign in to comment.