add commentators list

This commit is contained in:
2025-05-10 19:24:37 +02:00
parent ddb8e56a0d
commit f36310c727
3 changed files with 6 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ import { useEffect, useMemo, useState } from 'react'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
import { useLocalStorage } from 'usehooks-ts'
import { v4 } from 'uuid'
import { PlayerSelector } from './player-selector'
const obs = new OBSController()
@@ -397,7 +398,7 @@ function Settings() {
if (newCommentatorName.trim()) {
setCommentators([
...commentators,
{ id: crypto.randomUUID(), name: newCommentatorName.trim() },
{ id: v4(), name: newCommentatorName.trim() },
])
setNewCommentatorName('')
}