From 13babfce2c58dd55a7fe72d9a03aeb91eb18062f Mon Sep 17 00:00:00 2001 From: Matthew Congrove Date: Sat, 11 Jan 2025 00:09:57 -0600 Subject: [PATCH] More M2 considerations --- public/sitemap.xml | 14 +++++++------- src/pages/Car.tsx | 11 ++++++----- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/public/sitemap.xml b/public/sitemap.xml index ae34c5c..dac156b 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -2,43 +2,43 @@ https://miataregistry.com - 2025-01-10 + 2025-01-11 weekly 1.0 https://miataregistry.com/registry - 2025-01-10 + 2025-01-11 daily 0.9 https://miataregistry.com/registry/editions - 2025-01-10 + 2025-01-11 weekly 0.8 https://miataregistry.com/news - 2025-01-10 + 2025-01-11 weekly 0.7 https://miataregistry.com/rarity - 2025-01-10 + 2025-01-11 monthly 0.7 https://miataregistry.com/about - 2025-01-10 + 2025-01-11 monthly 0.6 https://miataregistry.com/legal - 2025-01-10 + 2025-01-11 monthly 0.3 diff --git a/src/pages/Car.tsx b/src/pages/Car.tsx index 4ae9a12..f9709ef 100644 --- a/src/pages/Car.tsx +++ b/src/pages/Car.tsx @@ -231,7 +231,11 @@ export const CarProfile = () => { dateRange: car.manufacture_date ? toPrettyDate(car.manufacture_date) : car.edition?.year.toString(), - location: manufactureLocation || 'JP', + location: manufactureLocation + ? manufactureLocation + : car.edition?.name.includes('M2-') + ? 'Tokyo, JP' + : 'JP', }); } else if (event.key === 'shipping') { items.push({ @@ -326,12 +330,9 @@ export const CarProfile = () => { if (!car && !vinDetails) return []; return [ - vinDetails?.VIN?.startsWith('JM1') ? country('JP') : null, vinDetails?.PlantCountry ? country(vinDetails.PlantCountry) - : vinDetails?.VIN?.startsWith('JM1') - ? country('JP') - : null, + : country('JP'), car?.shipping_state ? state(car.shipping_state) : car?.shipping_country