Open syu93 opened 8 years ago
I managed to display the chosen photo at the beginning by doing an unshift of the photo on the array. Not what we wanted but it do the job.
As we may want to see users posted photos from past contests, each selected photo for a contest must be out of the current contest node which only purpose is to know if the user is registered e.g. bellow:
{
// ...
"-randomNode": {
// ...
. "currentContest": {
"id": "-KACQlVMfncIVZtzyMRy",
"role": "participant"
},
contests: {
"-randomNode": {
// photo infos ...
}
}
}
}
Lazy load images
Display the current chosen photo alongside with the list of the users photo