fix ReviewCard.js element id issue

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2022-11-30 17:02:42 -08:00
parent 11b152fec9
commit eb3133c676

View File

@ -256,7 +256,7 @@ class ReviewCard extends HTMLElement {
dataContainer["mealImg"] = mealImg.getAttribute("src");
//get meal name
let mealLabel = this.shadowEl.getElementById("a-mealName");
let mealLabel = this.shadowEl.getElementById("a-meal-name");
dataContainer["mealName"] = mealLabel.innerHTML;
//get comment section