Skip to content

Commit

Permalink
fix(css): correct usage of Object.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTelanie committed Apr 7, 2020
1 parent afaa034 commit d94b8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function getVarPrefix(name) {

export function convertToCSSVars(name, obj, target = {}) {
const prefix = getVarPrefix(name);
Object.entries(obj).forEach((value, key) => {
Object.entries(obj).forEach(([key, value]) => {
target[`--${prefix}${key}`] = value;
});
return target;
Expand Down

0 comments on commit d94b8ec

Please sign in to comment.