fix: increment DB version and improve ads parsing robustness

This commit is contained in:
Christian Vidal Wolf
2026-01-21 10:52:30 +01:00
parent e5c72c48c5
commit 1c2a0e86aa
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -201,9 +201,9 @@ const App: React.FC = () => {
await saveAdsData(data);
console.log("Ads loaded:", data.length, "records from", file.name);
setIsDataModalOpen(false);
} catch (error) {
} catch (error: any) {
console.error("Failed to parse Ads file", error);
alert("Error parsing Ads file. Please check the format.");
alert(`Error parsing Ads file: ${error.message || 'Unknown error'}. Please check the format.`);
} finally {
setSyncing(false);
}