Bläddra i källkod

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

juan-filtering-match-pool
tomit4 2 år sedan
förälder
incheckning
b95fc0c3a2

+ 1
- 2
frontend/src/router/guards.js Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

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

Laddar…
Avbryt
Spara