mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-05 18:26:56 +01:00
Fix excel import if wish is empty
This commit is contained in:
parent
eaae159e53
commit
de05a8fd63
1 changed files with 6 additions and 4 deletions
|
@ -44,9 +44,11 @@
|
|||
let oldest = dayjs().year(2200);
|
||||
|
||||
if (data !== null) {
|
||||
newest = dayjs(data.pulls[data.pulls.length - 1].time);
|
||||
oldest = dayjs(data.pulls[0].time);
|
||||
pulls = data.pulls;
|
||||
if (data.pulls.length > 0) {
|
||||
newest = dayjs(data.pulls[data.pulls.length - 1].time);
|
||||
oldest = dayjs(data.pulls[0].time);
|
||||
pulls = data.pulls;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -230,7 +232,7 @@
|
|||
'character-event': 'Character Event Wish',
|
||||
'weapon-event': 'Weapon Event Wish',
|
||||
standard: 'Permanent Wish',
|
||||
beginners: "Novice Wishes",
|
||||
beginners: 'Novice Wishes',
|
||||
};
|
||||
|
||||
const weapons = Object.values(weaponList);
|
||||
|
|
Loading…
Reference in a new issue