We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90487ee commit fb060b5Copy full SHA for fb060b5
src/components/QuranicCalendar/WeeklyVerses/ActionButtons.tsx
@@ -43,11 +43,12 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
43
logButtonClick('quran_calendar_read_online');
44
};
45
46
- const markAsCompletedLabel = isMobileView
47
- ? '\u2713'
48
- : !isCompleted
49
- ? t('mark-as-completed')
50
- : t('week-completed');
+ const getMarkAsCompletedLabel = () => {
+ if (isMobileView) return '\u2713';
+ return isCompleted ? t('week-completed') : t('mark-as-completed');
+ };
+
51
+ const markAsCompletedLabel = getMarkAsCompletedLabel();
52
53
return (
54
<div className={styles.actionButtons}>
0 commit comments