From 735cbf05b7c490e40ff1a0eb85cd8a270af8c641 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun <cheeaun@gmail.com> Date: Wed, 14 Dec 2022 22:53:14 +0800 Subject: [PATCH] Very embarrassing mistake Why do I even name such bad variable names --- src/pages/notifications.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index 7650b17b..b370f087 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -113,11 +113,11 @@ function Notification({ notification }) { <Avatar url={account.avatarStatic} size={ - accounts < 10 + _accounts.length < 10 ? 'xl' - : accounts < 100 + : _accounts.length < 100 ? 'l' - : accounts < 1000 + : _accounts.length < 1000 ? 'm' : 's' // My god, this person is popular! }