Cannot destructure property 'discounts' of 'A' as it is undefined.