making it nicer

This commit is contained in:
Arjun Patel
2022-02-11 19:09:43 -08:00
parent e1cde7678c
commit f2d909ac13
3 changed files with 6 additions and 33 deletions
@@ -213,6 +213,11 @@ export default function AudioHandler() {
};
const playLastClip = () => {
if (audioQueue.length > 0) {
setAudioQueue([]);
return;
}
if (!selectedConvoId) {
toast.error("select a conversation before playing");
return;