Skip to content

Commit

Permalink
fix show audio
Browse files Browse the repository at this point in the history
  • Loading branch information
nicele08 committed Apr 25, 2024
1 parent f5e24d2 commit be3ee20
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/components/shared/voice-annotator/QuestionAnswer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@ const QuestionAnswer = ({
{type}
</p>

{type === 'Question' && (
{type === 'Question' && audio && (
<div className="px-2 mt-4">
{audio ? (
<audio
controls
src={`${BASE_AUDIO_URL}/${audio}`}
className="w-full"
/>
) : (
<p className="text-slate-400">No audio question</p>
)}
<audio
controls
src={`${BASE_AUDIO_URL}/${audio}`}
className="w-full"
/>
<p className="text-blue-500 font-normal font-['Inter'] mt-4">
Translation
</p>
Expand Down

0 comments on commit be3ee20

Please sign in to comment.