0

I have this in my mapstatetoprops function:

const mapStateToProps = ({
    currencies: {
        charge: {
            amount,
            recurring: { amount },
        },
    },
})

so when I pass this through I get an error from the linter saying:

Argument name clash in strict mode

obviously amount has been declared twice

any ideas how I can do this? I thought I could do: amount: someOtherValue but that still broke

donut
  • 343
  • 2
  • 7
  • 15

0 Answers0