Bläddra i källkod

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

tags/0.0.4
tomit4 2 år sedan
förälder
incheckning
31ceca608e

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

47
     ) {
47
     ) {
48
         await currentProfile.login(
48
         await currentProfile.login(
49
             sessionData.profileId,
49
             sessionData.profileId,
50
-            // NOTE: probably not correct...
51
-            WaveUI.notify,
50
+            WaveUI.instance.notify,
52
             sessionData.accessToken,
51
             sessionData.accessToken,
53
         )
52
         )
54
     }
53
     }

+ 1
- 2
frontend/src/views/OnboardingView.vue Visa fil

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

+ 0
- 2
frontend/src/views/SurveyCompleteView.vue Visa fil

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

Laddar…
Avbryt
Spara