fix some warnings

This commit is contained in:
Niko Lockenvitz 2020-06-05 14:50:51 +02:00
parent de9952ca3e
commit 71592bdfc1
2 changed files with 3 additions and 3 deletions

View file

@ -56,10 +56,10 @@ export default {
},
created() {
this.$eventHub.$on("askForConfirmationToDeleteSelectedDecks", () => {
this.$refs.confirmDelete.show();
if (this.$refs.confirmDelete) this.$refs.confirmDelete.show();
});
this.$eventHub.$on("showInfoForSelectedDeck", () => {
this.$refs.info.show();
if (this.$refs.info) this.$refs.info.show();
});
},
data() {

View file

@ -59,7 +59,7 @@ Morbi tempor quis justo vitae imperdiet.`,
},
created() {
this.$eventHub.$on("askForConfirmationToQuitLearning", () => {
this.$refs.confirmQuit.show();
if (this.$refs.confirmQuit) this.$refs.confirmQuit.show();
});
},
beforeMount() {