~shreyasminocha/rice-dining-api

8c66f94ecee173eef343ba1d01ce774a3a79fee5 — Shreyas Minocha 2 years ago f4e59d0
Trim item names
1 files changed, 1 insertions(+), 1 deletions(-)

M src/item-to-data.js
M src/item-to-data.js => src/item-to-data.js +1 -1
@@ 2,7 2,7 @@ function itemToData(item) {
	const iconsDom = item.querySelectorAll('.icons');

	return {
		item: item.querySelector('.mitem').textContent,
		item: item.querySelector('.mitem').textContent.trim(),
		tags: Array.from(iconsDom).map(iconDomToTags),
	};
}