diff --git a/components/Soundboard/index.tsx b/components/Soundboard/index.tsx index f2f63b1..1eab073 100644 --- a/components/Soundboard/index.tsx +++ b/components/Soundboard/index.tsx @@ -19,7 +19,14 @@ export default function Soundboard() { const getButton = (title: string, ref: RefObject) => { return + onClick={() => + { + if (ref.current){ + ref.current.currentTime = 0; + ref.current?.play() + } + } + }>{title} } return (