updates on the changes arelated toe the order creation and delivery fixes as well
This commit is contained in:
@@ -559,7 +559,14 @@ export const fetchDeliveries = async ({ pageParam = 1, queryKey }) => {
|
||||
tenantadress: tenant?.primaryemail || '',
|
||||
locationname: tenant?.tenantname || '',
|
||||
locationsuburb: '',
|
||||
pickupcustomer: '',
|
||||
// Was hardcoded '' — Dispatch.js's kitchen markers read this as the
|
||||
// pickup business name (`o.pickupcustomer || o.kitchen_key || 'Unknown'`,
|
||||
// Dispatch.js:1660), and no booking on this API carries a `kitchen_key`
|
||||
// field at all, so every kitchen pin fell through to the literal string
|
||||
// 'Unknown' — rendered as a "U" marker whose hover/popup then showed
|
||||
// "Unknown". The tenant IS the kitchen for a B2B booking (same value
|
||||
// already used for tenantname/locationname above), so reuse it here.
|
||||
pickupcustomer: tenant?.tenantname || '',
|
||||
pickupcontactno: '',
|
||||
Pickupaddress: b.pickupaddress || '',
|
||||
pickupaddress: b.pickupaddress || '',
|
||||
|
||||
Reference in New Issue
Block a user