-
Notifications
You must be signed in to change notification settings - Fork 0
Joao/deck2 templates #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Joao/deck2 templates #535
Conversation
…into joao/deck2-templates "fix: templates by gender"
| palestra no nosso evento. Ficaríamos muito gratos pela | ||
| oportunidade de recebê-l<b style="color: red">o/a/e</b> se | ||
| aceitar este convite. | ||
| Sou {{.MemberArticle}} {{.Member}}, um orgulhoso membro da |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"um orgulhoso membro" also needs the article
| const createSpeakerTemplateVariables = () => { | ||
| const endDate = new Date(eventStore.selectedEvent?.end || 0); | ||
| const memberGender = authStore.member?.contactObject?.gender ?? "OTHER"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is to force the user to fill all the information. The gender of the member and the speaker should always exist when getting to this step.
| return { article: "o", suffix: "" }; | ||
| case "FEMALE": | ||
| return { article: "a", suffix: "a" }; | ||
| default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it misses the "OTHER" gender case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't the default case and the "OTHER" case be the same?
No description provided.