Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Dec 16, 2024
1 parent 52552af commit cf2dbe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ const Sidebar = ({
if (auditTrialDaysRemaining > 1) {
const irtl = new Intl.RelativeTimeFormat({ style: 'long' });
return (
<div data-testid='x-days-remaining-message'>
<div data-testid="x-days-remaining-message">
Your trial ends {irtl.format(auditTrialDaysRemaining, 'day')}. <a target="_blank" href={upgradeUrl} rel="noreferrer">Upgrade</a> for full access to Xpert.
</div>
);
} if (auditTrialDaysRemaining === 1) {
return (
<div data-testid='trial-ends-today'>
<div data-testid="trial-ends-today">
Your trial ends today! <a target="_blank" href={upgradeUrl} rel="noreferrer">Upgrade</a> for full access to Xpert.
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-course-upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function useCourseUpgrade() {
auditTrialDaysRemaining = Math.ceil((auditTrialExpirationDate - Date.now()) / millisecondsInOneDay);

auditTrialExpired = auditTrialDaysRemaining < 0;
console.log({ upgradeUrl }, { auditTrialDaysRemaining });
// console.log({ upgradeUrl }, { auditTrialDaysRemaining });
}

return {
Expand Down

0 comments on commit cf2dbe5

Please sign in to comment.