fix: description.

This commit is contained in:
ItzNotABug committed 2024-09-30 19:49:19 +05:30
1 parent ac6242098d
commit 1b3fcbbeaa
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ export const backupPolicyDescription = (
: `A backup will run daily at ${timeFormatted}.`;
case 'weekly': {
const daysArray = weeklySelectedDays || ['Monday'];
const daysArray = weeklySelectedDays.length ? weeklySelectedDays : ['Monday'];
const dayString =
daysArray.length > 1
? daysArray.slice(0, -1).join(', ') + ' and ' + daysArray.slice(-1)