Skip to content

Commit

Permalink
Fix another TypeScript build error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanregisser committed Nov 4, 2019
1 parent 4bdc909 commit 86108d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-components/analytics/wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export default function Initializer(CeloAnalytics: CeloAnalyticsType, Logger: Re
}
}

function forwardRef(props: {}, ref?: React.Ref<React.ReactElement<any>>) {
return <ComponentWithAnalytics {...props as P} forwardedRef={ref} />
function forwardRef(props: P, ref: any) {
return <ComponentWithAnalytics {...props} forwardedRef={ref} />
}

forwardRef.displayName = `WithAnalytics(${displayName})`
Expand Down

0 comments on commit 86108d2

Please sign in to comment.