Merge branch 'main' into enable-hard-mode

enable-hard-mode
kodiakhq[bot] 2022-02-24 19:37:01 +00:00 committed by GitHub
commit 6f4b75faff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -22,9 +22,9 @@ const AvailabilityView = ({ user }: { user: User }) => {
function convertMinsToHrsMins(mins: number) {
let h = Math.floor(mins / 60);
let m = mins % 60;
h = h < 10 ? 0 + h : h;
m = m < 10 ? 0 + m : m;
return `${h}:${m}`;
let hs = h < 10 ? "0" + h : h;
let ms = m < 10 ? "0" + m : m;
return `${hs}:${ms}`;
}
useEffect(() => {