Skip to content

Commit

Permalink
refactor(karaoke): use handleDeleteFromQueue method (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
italux authored Nov 13, 2024
1 parent f6be5b3 commit 10cc44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/karaoke.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ export function Karaoke({ code }: { code: string }) {
song: string;
}) => {
try {
// Remove the item from the queue
await deleteDoc(doc(db, "sessions", code, "queue", item.id));
// Remove the item from the queue using handleDeleteFromQueue
await handleDeleteFromQueue(item.id);
// Set the current video
await setDoc(doc(db, "sessions", code, "currentVideo", "current"), {
...item,
Expand Down

0 comments on commit 10cc44f

Please sign in to comment.