fix: pluralization
continuous-integration/drone/push Build is passing Details

pull/1/head
Antonio De Lucreziis 2 months ago
parent d6b3d4f1a4
commit e9c9638cc5

@ -25,7 +25,7 @@ function upperFirst(string) {
{ {
tutorEntries && ( tutorEntries && (
<div class="tutor-entries"> <div class="tutor-entries">
<h2>I Tutor</h2> <h2>{tutorEntries.length === 1 ? 'Il' : 'I'} Tutor</h2>
{tutorEntries.map(({ name, image, contacts }) => ( {tutorEntries.map(({ name, image, contacts }) => (
<div class="tutor"> <div class="tutor">
<h3 class="name">{name ?? '???'}</h3> <h3 class="name">{name ?? '???'}</h3>

Loading…
Cancel
Save