Skip to content

Commit

Permalink
fix: 🐛 InputCurrency eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed Mar 19, 2020
1 parent 9b9d847 commit a7b395a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions react/components/InputCurrency/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ BaseInput.propTypes = {
}

const baseNumber = 9999999999.9999999999
const defaultEvent = { target: null }

class InputCurrency extends Component {
handleChange = ({ floatValue }) => {
const { onChange } = this.props
const ssr = typeof document === 'undefined' || typeof window === 'undefined'
const event = ssr ? defaultEvent : window.event

onChange &&
onChange({
...event,
Expand Down

0 comments on commit a7b395a

Please sign in to comment.