Parcourir la source

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

brian_dev_survey_complete
tomit4 il y a 2 ans
Parent
révision
babb1af568

+ 1
- 2
frontend/src/router/guards.js Voir le fichier

@@ -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 Voir le fichier

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

+ 0
- 2
frontend/src/views/SurveyCompleteView.vue Voir le fichier

@@ -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,

Chargement…
Annuler
Enregistrer