Skip to content

Commit

Permalink
Fix renderer and delete comments (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddsaura committed Dec 15, 2021
1 parent d1389e2 commit 70338a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions frontend/components/App/StatusBar/index.tsx
Expand Up @@ -45,7 +45,6 @@ const CountDown: React.FC<Props> = ({ isModerator, data, timeStatus, conferenceS
}, [timeStatus, conferenceStatus]);

const rendererCountdown = ({ hours, minutes, completed, total }) => {
console.log('----- Renderer: ', minutes, '-----');
const conferenceNotStarted = conferenceStatus === IConferenceStatus?.NOT_STARTED;
let timeLeftText;

Expand All @@ -62,9 +61,7 @@ const CountDown: React.FC<Props> = ({ isModerator, data, timeStatus, conferenceS
const hoursText = t('form:fishbowl.hours');
const minutesText = t('form:fishbowl.minutes');
const time =
hours > 0
? `${zeroPad(hours)}${hoursText}:${zeroPad(minutes + 1)}`
: Math.ceil(total / 60_000);
hours > 0 ? `${zeroPad(hours)}${hoursText}:${zeroPad(minutes)}` : Math.ceil(total / 60_000);
timeLeftText = t(conferenceNotStarted ? 'timeToStart' : 'timeLeft_other', {
time: `${time}${minutesText}`
});
Expand Down
1 change: 0 additions & 1 deletion frontend/contexts/StooaManager.tsx
Expand Up @@ -166,7 +166,6 @@ const StooaProvider = ({ data, isModerator, children }) => {
setApiInterval(window.setInterval(checkApIConferenceStatus, 6000));

return () => {
console.log('-----[TestingCountdown] - Clearing intervals -----');
window.clearInterval(timeUpInterval);
window.clearInterval(apiInterval);
};
Expand Down

0 comments on commit 70338a0

Please sign in to comment.