Skip to content

Commit

Permalink
chore: set status when db loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
qFamouse committed Dec 17, 2022
1 parent 477c218 commit 5b7ae8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/popup/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ export function Menu() {
if (i === files.length - 1) {
QuestionDatabase.import(text).then(() => {
// TODO: temp solution
updateDatabaseSize().then(size => setDbSize(size));
updateDatabaseSize().then(size => {
setDbSize(size);
setStatus("Loaded!");
});
});
}
else {
Expand Down

0 comments on commit 5b7ae8f

Please sign in to comment.