Skip to content

Commit

Permalink
fix: createGlobalStyles: TypeError: fn is not a function (#20)
Browse files Browse the repository at this point in the history
fixes #19
  • Loading branch information
btakita authored Feb 21, 2022
1 parent ccc042e commit 1452537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const styled = new Proxy(makeStyled, {
})

export function createGlobalStyles() {
const fn = styled.call({ g: 1 }, "div").apply(null, arguments);
const fn = makeStyled.call({ g: 1 }, "div").apply(null, arguments);
return function GlobalStyles(props) {
fn(props);
return null;
Expand Down

0 comments on commit 1452537

Please sign in to comment.