diff --git a/src/functions/export.js b/src/functions/export.js index e3560360..90c1dd21 100644 --- a/src/functions/export.js +++ b/src/functions/export.js @@ -147,6 +147,8 @@ async function addWishHistory(workbook, icons) { bold: true, }; + if (data === null) continue; + let groupCount = 0; let lastTime = 0; let lastBanner = ''; diff --git a/src/functions/wish.js b/src/functions/wish.js index 9a0c5c0c..f2a1f8bf 100644 --- a/src/functions/wish.js +++ b/src/functions/wish.js @@ -75,7 +75,11 @@ export function process(id) { }; }); - const { pullData } = readLocalData(path); + const data = readLocalData(path); + + if (data === null) return null; + + const pullData = data.pullData; const currentPulls = []; const allLegendary = [];