From cbb0f5a9640c2eadfde009e0e514409e4954e9c7 Mon Sep 17 00:00:00 2001
From: Hazelnoot <acomputerdog@gmail.com>
Date: Sun, 18 May 2025 14:03:40 -0400
Subject: fix type errors in note translation source

---
 packages/frontend/src/components/MkSubNoteContent.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/MkSubNoteContent.vue')

diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue
index 792ad560b9..9a59678a99 100644
--- a/packages/frontend/src/components/MkSubNoteContent.vue
+++ b/packages/frontend/src/components/MkSubNoteContent.vue
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 		<div v-if="translating || translation != null" :class="$style.translation">
 			<MkLoading v-if="translating" mini/>
 			<div v-else-if="translation && translation.text != null">
-				<b>{{ i18n.tsx.translatedFrom({ x: translation.sourceLang }) }}: </b>
+				<b v-if="translation.sourceLang">{{ i18n.tsx.translatedFrom({ x: translation.sourceLang }) }}: </b>
 				<Mfm :text="translation.text" :isBlock="true" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis" class="_selectable"/>
 			</div>
 			<div v-else>{{ i18n.ts.translationFailed }}</div>
-- 
cgit v1.2.3-freya

