Skip to content

Commit

Permalink
fix(templates): prevent auxiliary classroom to be checked inadvertently
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Dec 15, 2024
1 parent f1631e3 commit 3377330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/meetings/midweek/S89/default/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const TemplateS89 = ({ data, lang }: S89Type) => {

<S89ToBeGiven
main_hall={data.main_hall}
aux_class_1={data.aux_class_1}
aux_class_1={!data.main_hall && data.aux_class_1}
aux_class_2={data.aux_class_2}
/>

Expand Down
4 changes: 3 additions & 1 deletion src/views/meetings/midweek/S89/shared/S89Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import styles from './index.styles';
const S89Header = ({ lang }: S89HeaderType) => {
const { t } = useAppTranslation();

const isLargeHeader = lang === 'k';
const largeLangs = ['k', 'mg'];

const isLargeHeader = largeLangs.includes(lang.toLowerCase());

return (
<View style={styles.header}>
Expand Down

0 comments on commit 3377330

Please sign in to comment.