π£ Realised the hard work for the past week is moot, because of one tiny detail I overlooked
My solution for profile images on the /community page only works because I assumed the index position for my accDetailsAll and author.id are aligned. But they are not in the production db, because I had deleted users before. For index position 4 now has author id of 10. The hack of using `....- 1` doesn't work anymore.
Back to the drawing board!
Spent the whole morning trying to using a method in a v-if nested within a v-for
`v-if="getProfileImg(streak.author)"`
but it ended up creating an infinite loop π΅
Will try map() within a method instead and push() the profileImg data to the array for v-for
Back to the drawing board!
Spent the whole morning trying to using a method in a v-if nested within a v-for
`v-if="getProfileImg(streak.author)"`
but it ended up creating an infinite loop π΅
Will try map() within a method instead and push() the profileImg data to the array for v-for