Created
March 4, 2020 19:58
-
-
Save mediaupstream/f7ab80b5caf4936eb8b171c51eb72a06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isDeliverable = async address => { | |
if (disableEcommerce) { | |
return false | |
} | |
const api = Api.init() | |
const { deliverable } = await api.post( | |
'/location?delivery_type=all', | |
{ | |
...address, | |
tentative: undefined | |
} | |
) | |
return deliverable | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment