Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit 26983f9

Browse files
add participant name to QuizFinished
1 parent b743656 commit 26983f9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/views/Quiz/QuizFinished.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<template v-slot:title>Congratulations!</template>
66
<template v-slot:default>
77
<div>
8-
<p>Congratulations!</p>
8+
<p>Congratulations, {{ firstName }}!</p>
99

1010
<p>
1111
You’ve completed the boss level of the Deep Space Crystal Chase.
@@ -58,12 +58,18 @@
5858

5959
<script>
6060
import QuizScroll from "@/components/QuizScroll";
61+
import { User } from "@/store";
6162
export default {
6263
name: "quiz",
6364
components: {
6465
QuizScroll
6566
},
66-
mounted() {}
67+
mounted() {},
68+
computed: {
69+
firstName() {
70+
return User.state.firstName;
71+
}
72+
}
6773
};
6874
</script>
6975

0 commit comments

Comments
 (0)