Sfoglia il codice sorgente

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

brian_dev_survey_complete
tomit4 2 anni fa
parent
commit
babb1af568

+ 1
- 2
frontend/src/router/guards.js Vedi File

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 Vedi File

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 {
140
                     this.responses[this.responses.length - 1],
138
                     this.responses[this.responses.length - 1],
141
                     currentProfile._profile.profile_id,
139
                     currentProfile._profile.profile_id,
142
                 )
140
                 )
141
+                currentProfile._profile.responses = this.responses
143
                 try {
142
                 try {
144
                     await this.verifySession(hashedAccessToken)
143
                     await this.verifySession(hashedAccessToken)
145
                 } catch (err) {
144
                 } catch (err) {

+ 0
- 2
frontend/src/views/SurveyCompleteView.vue Vedi File

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,

Loading…
Annulla
Salva