Fix when orthography section displays

This commit is contained in:
Robbie Antenesse 2019-07-08 16:17:16 -06:00
parent 857264afde
commit 7942d628d4
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export function renderDetails() {
return false;
}).filter(html => html !== false).join(' ')}</p>`;
const orthographyNotesHTML = orthography.notes.trim().length > 0 ? '<p><strong>Notes</strong><br>' + md(removeTags(orthography.notes)) + '</div>' : '';
const orthographyHTML = translations.length > 0 && orthographyNotesHTML.length > 0
const orthographyHTML = translations.length > 0 || orthographyNotesHTML.length > 0
? `<h3>Orthography</h3>
${translations.length > 0 ? translationsHTML : ''}
${orthographyNotesHTML}`