fix: react-doctor modal/dialog/dropzone a11y — 18 files to role+tabIndex+onKeyDown or dialog
This commit is contained in:
@@ -213,6 +213,7 @@ await getSession(); const adminUser = await getAdminUser();
|
||||
const allowedServices = perishable
|
||||
? (["FEDEX_OVERNIGHT", "FEDEX_2_DAY_AIR"] as FedExServiceType[])
|
||||
: ALL_SERVICES;
|
||||
const allowedServicesSet = new Set<FedExServiceType>(allowedServices);
|
||||
|
||||
// Build FedEx rate request. The SaaS rebuild doesn't store the
|
||||
// recipient's city/state/zip on the order — FedEx rate quotes
|
||||
@@ -283,7 +284,7 @@ await getSession(); const adminUser = await getAdminUser();
|
||||
|
||||
for (const detail of output) {
|
||||
const serviceType = detail.serviceType as FedExServiceType;
|
||||
if (!allowedServices.includes(serviceType)) continue;
|
||||
if (!allowedServicesSet.has(serviceType)) continue;
|
||||
|
||||
const dayOption = detail.derivedDetails?.deliveryDayOfWeek ?? "";
|
||||
const deliveryDate = detail.derivedDetails?.deliveryDate ?? "";
|
||||
|
||||
Reference in New Issue
Block a user