From e654c390b766928d943b19dfae27166ead5754ef Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Tue, 28 Mar 2023 13:25:59 -0400 Subject: [PATCH] fix: fix some code smell by adding const for variables --- .../ui/components/components-data/chat-context/context.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/components-data/chat-context/context.jsx b/bigbluebutton-html5/imports/ui/components/components-data/chat-context/context.jsx index 579cb2e889..2731480439 100644 --- a/bigbluebutton-html5/imports/ui/components/components-data/chat-context/context.jsx +++ b/bigbluebutton-html5/imports/ui/components/components-data/chat-context/context.jsx @@ -43,9 +43,9 @@ export const getLoginTime = () => (Users.findOne({ userId: Auth.userID }) || {}) const generateTimeWindow = (timestamp) => { const groupingTime = getGroupingTime(); - dateInMilliseconds = Math.floor(timestamp); - groupIndex = Math.floor(dateInMilliseconds / groupingTime) - date = groupIndex * 30000; + const dateInMilliseconds = Math.floor(timestamp); + const groupIndex = Math.floor(dateInMilliseconds / groupingTime) + const date = groupIndex * 30000; return date; }