mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
remove unnecessary JSON.parse
This commit is contained in:
parent
5e58f6b952
commit
5ea70030be
@ -128,7 +128,7 @@ var trial = {
|
|||||||
prompt: function() {
|
prompt: function() {
|
||||||
// this question prompt is dynamic - the text that is shown
|
// this question prompt is dynamic - the text that is shown
|
||||||
// will change based on the participant's earlier response
|
// 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+"?"
|
var text = "Earlier you said your favorite city is "+favorite_city+". What do you like most about "+favorite_city+"?"
|
||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user