From b284c66bfc6c9b5ac17c18e2e073f85156f99e30 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Tue, 9 Mar 2021 17:40:51 +0800 Subject: [PATCH] Hide first time banner after import wish --- src/components/WishImportModal.svelte | 3 +++ src/routes/wish/index.svelte | 1 + 2 files changed, 4 insertions(+) diff --git a/src/components/WishImportModal.svelte b/src/components/WishImportModal.svelte index 2e651c3c..3f70824d 100644 --- a/src/components/WishImportModal.svelte +++ b/src/components/WishImportModal.svelte @@ -13,6 +13,7 @@ import { characters } from '../data/characters'; import { readSave, updateSave } from '../stores/saveManager'; + export let processFirstTimePopup; export let closeModal; const fetchController = new AbortController(); @@ -374,6 +375,8 @@ } function processWishes(code, type) { + processFirstTimePopup(false, false); + if (wishes[code] === undefined) return; console.log('processing', type.name); diff --git a/src/routes/wish/index.svelte b/src/routes/wish/index.svelte index b44017f2..c1fdf602 100644 --- a/src/routes/wish/index.svelte +++ b/src/routes/wish/index.svelte @@ -88,6 +88,7 @@ ImportModal, { closeModal: closeImportModal, + processFirstTimePopup, }, { closeButton: false,