diff --git a/bbb-learning-dashboard/src/App.js b/bbb-learning-dashboard/src/App.js index b9edd9c4f3..8115105ea6 100644 --- a/bbb-learning-dashboard/src/App.js +++ b/bbb-learning-dashboard/src/App.js @@ -87,14 +87,18 @@ class App extends React.Component { const cDecoded = decodeURIComponent(document.cookie); const cArr = cDecoded.split('; '); cArr.forEach((val) => { - if (val.indexOf(`${cookieName}=`) === 0) learningDashboardAccessToken = val.substring((`${cookieName}=`).length); + if (val.indexOf(`${cookieName}=`) === 0) { + learningDashboardAccessToken = val.substring((`${cookieName}=`).length); + } }); // Extend AccessToken lifetime by 7d (in each access) if (learningDashboardAccessToken !== '') { const cookieExpiresDate = new Date(); cookieExpiresDate.setTime(cookieExpiresDate.getTime() + (3600000 * 24 * 7)); - document.cookie = `ld-${meetingId}=${learningDashboardAccessToken}; expires=${cookieExpiresDate.toGMTString()}; path=/;SameSite=None;Secure`; + document.cookie = `ld-${meetingId}=${learningDashboardAccessToken}; \ + expires=${cookieExpiresDate.toGMTString()}; \ + path=/;SameSite=None;Secure`; } } diff --git a/bbb-learning-dashboard/src/components/Card.jsx b/bbb-learning-dashboard/src/components/Card.jsx index b0e985e24c..b70ffe3c2e 100644 --- a/bbb-learning-dashboard/src/components/Card.jsx +++ b/bbb-learning-dashboard/src/components/Card.jsx @@ -34,7 +34,12 @@ function Card(props) { } return ( -
{ number } diff --git a/bbb-learning-dashboard/src/components/StatusTable.jsx b/bbb-learning-dashboard/src/components/StatusTable.jsx index b8d501ae48..e1057880e0 100644 --- a/bbb-learning-dashboard/src/components/StatusTable.jsx +++ b/bbb-learning-dashboard/src/components/StatusTable.jsx @@ -147,13 +147,21 @@ class StatusTable extends React.Component { aria-label={tsToHHmmss(start - periods[0].start)} > - +