Skip to content

Commit

Permalink
Fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Jun 28, 2017
1 parent ddaedb5 commit 8750217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { css } from './index'

export default function (tag, cls, vars = [], content) {
export default function (tag, cls = '', vars = [], content) {
if (!tag) {
throw new Error(
'You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.'
Expand Down

0 comments on commit 8750217

Please sign in to comment.