Using Runkit, I'm trying to return a JSON of a menu of my local Domino's. It's returning this instead: {} So I checked the endpoint logs and there's this error:
TypeError: Cannot read property 'Variants' of undefined
in pizzapi/src/Store.js — line 62
var variantKeys = Object.keys(result.result.Variants)
Using Runkit, I'm trying to return a JSON of a menu of my local Domino's. It's returning this instead:
{}
So I checked the endpoint logs and there's this error:You can see the full code here: https://runkit.com/levistep32/5b8a05f1ed7d5b0012a8ecec