Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleClick = e => {
e.preventDefault()
setLoading(true)
const { postalCode } = removeValidation(address)
client
.query({
query: getShippingEstimates,
variables: {
country,
postalCode,
items: [
{
quantity: '1',
id: skuId,
seller,
},
],
},
})
.then(result => {