-
Hi all ,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Hadil0520, It looks like you are saving data in the experiment |
Beta Was this translation helpful? Give feedback.
-
Hi all ,
|
Beta Was this translation helpful? Give feedback.
-
Hi @Hadil0520, It looks like you are saving data in the experiment |
Beta Was this translation helpful? Give feedback.
Hi @Hadil0520,
It looks like you are saving data in the experiment
on_finish
event and you are redirecting participants to Prolific's completion page in thecompleteSubmission
trial. You've got a 100ms delay, between the end of the trial and the redirect. This is probably not enough time for the update to be submitted to firebase. I'd suggest moving the redirect to inside thesaveSubjectData
function, after youawait
the update to the database. This should ensure that the data are written before exiting the page.