diff --git a/frontend/src/components/Comments.js b/frontend/src/components/Comments.js index c536f851dca789552a7451a514612a871fb839ae..48953438d8a7b9d4d8b98573c04aed0bf0aab6b6 100644 --- a/frontend/src/components/Comments.js +++ b/frontend/src/components/Comments.js @@ -88,6 +88,10 @@ export default function Messages({ place, infos }) { .then((res) => { setMessages(res.data); setLoading(false); + if (!width && infos && res.data.length) { + let otherIcon = document.getElementById("comments-icon-left"); + otherIcon.style.cssText = "border: 1px solid red"; + } }) .catch((e) => { console.log(e);