fix(client): sync Redux store and DB (#39034)

This commit is contained in:
Oliver Eyton-Williams
2020-06-10 08:54:19 +02:00
committed by GitHub
parent 0fd8b7a6db
commit 6b8c2e74b6
3 changed files with 16 additions and 9 deletions

View File

@ -370,7 +370,11 @@ function createVerifyCert(certTypeIds, app) {
type: message.includes('Congratulations') ? 'success' : 'info',
message
},
isCertMap: getUserIsCertMap(user)
isCertMap: getUserIsCertMap(user),
// send back the completed challenges
// NOTE: we could just send back the latest challenge, but this
// ensures the challenges are synced.
completedChallenges: user.completedChallenges
});
}, next);
};