I want to call a function when previous function is completed. I use async and await, but it does not work :
  const getDate = async () => {
await Object.keys(baskets || {}).forEach(vendorCode => {
  recalculateBill({
    calculateOrder: true,
    shop: Tools.pickVendorFiled(baskets[vendorCode]),
    shopex: tab === DELIVERY_TYPES.NORMAL
  })
})
getShopexInfo({ ids: basketIds })
}
 
     
     
     
    