Skip to content

Commit

Permalink
Should fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
GStudiosX2 authored Nov 4, 2023
1 parent 82ac832 commit 9eeee58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
const dayTime = dayjs(time);

const formatted = `${dayTime.date()}-${dayTime.month()}-${dayTime.year()}`;
if (req['activeServerPlan'] || req['server_plan'] === 'FREE') {
if ((req['rawPlan'].trim() === '' ? req['server_plan'] : req['rawPlan']) === 'FREE') {
const ms = req['daily_online_time'][formatted] ?? 0;

if (ms <= 0) {
Expand All @@ -113,7 +113,7 @@
timeLeft.textContent = 'Invalid server name!';
}

checkTimeBtn.textContent = 'Check Time Left';
checkTimeBtn.textContent = 'Check';
serverNameInput.value = '';
}
</script>
Expand Down

0 comments on commit 9eeee58

Please sign in to comment.