Add to cart on Dynamic page not adding product

Can someone please help with the code below:

Console Log:
Selected product reference: {…}
Type of productRef: object
Selected product: {…}

Correct product is being pulled from the productRef but is not being added to the cart froim the _id

This is my code