Преглед изворни кода

:bug: Fixed bug of no display responses in surveycomplete, fixed waveui guards.js bug

tags/0.0.4
tomit4 пре 2 година
родитељ
комит
31ceca608e

+ 1
- 2
frontend/src/router/guards.js Прегледај датотеку

@@ -47,8 +47,7 @@ const loginIfToken = async () => {
47 47
     ) {
48 48
         await currentProfile.login(
49 49
             sessionData.profileId,
50
-            // NOTE: probably not correct...
51
-            WaveUI.notify,
50
+            WaveUI.instance.notify,
52 51
             sessionData.accessToken,
53 52
         )
54 53
     }

+ 1
- 2
frontend/src/views/OnboardingView.vue Прегледај датотеку

@@ -55,8 +55,6 @@ export default {
55 55
         invalidResponse: false,
56 56
     }),
57 57
     async created() {
58
-        // TODO: Troubleshoot bug where not all responses are returned at SurveyCompleteView
59
-        console.log('currentProfile :=>', currentProfile)
60 58
         this.survey = await surveyFactory.createSurvey()
61 59
         hashedAccessToken = this.grabStoredCookie('siimee_access')
62 60
         try {
@@ -139,6 +137,7 @@ export default {
139 137
                     this.responses[this.responses.length - 1],
140 138
                     currentProfile._profile.profile_id,
141 139
                 )
140
+                currentProfile._profile.responses = this.responses
142 141
                 try {
143 142
                     await this.verifySession(hashedAccessToken)
144 143
                 } catch (err) {

+ 0
- 2
frontend/src/views/SurveyCompleteView.vue Прегледај датотеку

@@ -33,8 +33,6 @@ export default {
33 33
         aspectResponses: [],
34 34
     }),
35 35
     created() {
36
-        // TODO: Troubleshoot bug where not all responses are returned
37
-        console.log('currentProfile :=>', currentProfile)
38 36
         this.parseSurvey(this.surveySteps)
39 37
         this.aspectResponses = this.grabAspectResponses(
40 38
             currentProfile._profile.responses,

Loading…
Откажи
Сачувај