Skip to content

Instantly share code, notes, and snippets.

@mediaupstream
Created March 4, 2020 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mediaupstream/f7ab80b5caf4936eb8b171c51eb72a06 to your computer and use it in GitHub Desktop.
Save mediaupstream/f7ab80b5caf4936eb8b171c51eb72a06 to your computer and use it in GitHub Desktop.
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