diff --git a/enjoy/src/constants/languages.json b/enjoy/src/constants/languages.json index 6b2508f9..3d0eda23 100644 --- a/enjoy/src/constants/languages.json +++ b/enjoy/src/constants/languages.json @@ -11,6 +11,10 @@ "code": "zh-CN", "name": "简体中文" }, + { + "code": "zh-HK", + "name": "粤语" + }, { "code": "ja-JP", "name": "日本語" diff --git a/enjoy/src/renderer/components/posts/post-recording.tsx b/enjoy/src/renderer/components/posts/post-recording.tsx index 54185fec..73789dd3 100644 --- a/enjoy/src/renderer/components/posts/post-recording.tsx +++ b/enjoy/src/renderer/components/posts/post-recording.tsx @@ -15,6 +15,7 @@ export const PostRecording = (props: { const fetchSegment = async () => { if (segment) return; + if (!recording.targetId) return; webApi .mineSegments({ diff --git a/enjoy/src/renderer/components/pronunciation-assessments/pronunciation-assessment-card.tsx b/enjoy/src/renderer/components/pronunciation-assessments/pronunciation-assessment-card.tsx index 08ae10a8..bfbbc855 100644 --- a/enjoy/src/renderer/components/pronunciation-assessments/pronunciation-assessment-card.tsx +++ b/enjoy/src/renderer/components/pronunciation-assessments/pronunciation-assessment-card.tsx @@ -17,8 +17,14 @@ export const PronunciationAssessmentCard = (props: { pronunciationAssessment: PronunciationAssessmentType; onSelect: (assessment: PronunciationAssessmentType) => void; onDelete: (assessment: PronunciationAssessmentType) => void; + onSharing: (recording: RecordingType) => void; }) => { - const { pronunciationAssessment: assessment, onSelect, onDelete } = props; + const { + pronunciationAssessment: assessment, + onSelect, + onDelete, + onSharing, + } = props; return (
-