Skip to content

Commit

Permalink
Fix useRef in voice note component
Browse files Browse the repository at this point in the history
  • Loading branch information
floguo committed Dec 13, 2024
1 parent a1c52cb commit 1450a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/voice-note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const VoiceNote: React.FC<VoiceNoteProps> = ({ audioBlob }) => {
const [audioBuffer, setAudioBuffer] = useState<AudioBuffer | null>(null)
const sourceNodeRef = useRef<AudioBufferSourceNode | null>(null)
const startTimeRef = useRef<number>(0)
const animationFrameRef = useRef<number>()
const animationFrameRef = useRef<number | null>(null)
const canvasRef = useRef<HTMLCanvasElement>(null)

useEffect(() => {
Expand Down

0 comments on commit 1450a42

Please sign in to comment.