remove unnecessary JSON.parse

This commit is contained in:
Becky Gilbert 2021-02-12 16:28:57 -08:00
parent 5e58f6b952
commit 5ea70030be

View File

@ -128,7 +128,7 @@ var trial = {
prompt: function() {
// this question prompt is dynamic - the text that is shown
// will change based on the participant's earlier response
var favorite_city = JSON.parse(jsPsych.data.getLastTrialData().values()[0].responses).fav_city;
var favorite_city = jsPsych.data.getLastTrialData().values()[0].responses.fav_city;
var text = "Earlier you said your favorite city is "+favorite_city+". What do you like most about "+favorite_city+"?"
return text;
},