fix: useRef requires initial value in strict TS mode
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
901dfe54be
commit
1d4a48cf74
1 changed files with 2 additions and 2 deletions
|
|
@ -328,7 +328,7 @@ export default function SoundboardTab({ data }: SoundboardTabProps) {
|
|||
const [chaosMode, setChaosMode] = useState(false);
|
||||
const [partyActiveGuilds, setPartyActiveGuilds] = useState<string[]>([]);
|
||||
const chaosModeRef = useRef(false);
|
||||
const volDebounceRef = useRef<ReturnType<typeof setTimeout>>();
|
||||
const volDebounceRef = useRef<ReturnType<typeof setTimeout>>(undefined);
|
||||
|
||||
/* ── Admin ── */
|
||||
const [isAdmin, setIsAdmin] = useState(false);
|
||||
|
|
@ -346,7 +346,7 @@ export default function SoundboardTab({ data }: SoundboardTabProps) {
|
|||
const [uploads, setUploads] = useState<UploadItem[]>([]);
|
||||
const [showUploads, setShowUploads] = useState(false);
|
||||
const dragCounterRef = useRef(0);
|
||||
const uploadDismissRef = useRef<ReturnType<typeof setTimeout>>();
|
||||
const uploadDismissRef = useRef<ReturnType<typeof setTimeout>>(undefined);
|
||||
|
||||
/* ── Voice Stats ── */
|
||||
const [voiceStats, setVoiceStats] = useState<VoiceStats | null>(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue