Hide first time banner after import wish

This commit is contained in:
Made Baruna 2021-03-09 17:40:51 +08:00
parent c97c97ae24
commit b284c66bfc
2 changed files with 4 additions and 0 deletions

View file

@ -13,6 +13,7 @@
import { characters } from '../data/characters'; import { characters } from '../data/characters';
import { readSave, updateSave } from '../stores/saveManager'; import { readSave, updateSave } from '../stores/saveManager';
export let processFirstTimePopup;
export let closeModal; export let closeModal;
const fetchController = new AbortController(); const fetchController = new AbortController();
@ -374,6 +375,8 @@
} }
function processWishes(code, type) { function processWishes(code, type) {
processFirstTimePopup(false, false);
if (wishes[code] === undefined) return; if (wishes[code] === undefined) return;
console.log('processing', type.name); console.log('processing', type.name);

View file

@ -88,6 +88,7 @@
ImportModal, ImportModal,
{ {
closeModal: closeImportModal, closeModal: closeImportModal,
processFirstTimePopup,
}, },
{ {
closeButton: false, closeButton: false,