debug: Add Spain-specific sheet fallbacks and expose Buy Box data to window.debugBuyBox

This commit is contained in:
Christian Vidal Wolf
2026-02-05 08:52:49 +01:00
parent aeefd76496
commit 9f9556af2a
2 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -229,7 +229,8 @@ const App: React.FC = () => {
const buffer = await response.arrayBuffer();
const data = await processBuyBoxExcel(buffer);
setBuyBoxLostMap(data);
console.log('[App] Successfully loaded Buy Box lost data for', data.size, 'ASINs');
(window as any).debugBuyBox = data;
console.log('[App] Successfully loaded Buy Box lost data for', data.size, 'ASINs. Access via window.debugBuyBox');
} catch (error) {
console.error("Failed to fetch/parse Buy Box data", error);
}