Skip to content

Commit

Permalink
fix: ts warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Apr 27, 2018
1 parent d38f4f3 commit af00f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function adopt<RP = any, P = any>(mapper: Mapper<RP, P>): RPC<RP, P> {

return isFn(element)
? React.createElement(element, assign({}, rest, props, { render }))
: React.cloneElement(element, null, render)
: React.cloneElement(element, {}, render)
}}
</Component>
)
Expand Down

0 comments on commit af00f67

Please sign in to comment.