fix: add error logging for various API calls across components
Deploy to VPS / deploy (push) Successful in 2m20s

This commit is contained in:
asepharyana
2026-07-26 16:34:06 +07:00
parent 74eabb7231
commit 1021301656
11 changed files with 56 additions and 51 deletions
+4 -3
View File
@@ -23,8 +23,8 @@ export function useVoiceStatus(): UseVoiceStatusReturn {
try {
const status = await voiceApi.getStatus();
setVoiceStatus(status);
} catch {
// ignore
} catch (err) {
console.error("useVoiceStatus:", err);
}
}, []);
@@ -48,7 +48,8 @@ export function useVoiceChannels(): UseVoiceChannelsReturn {
try {
const ch = await voiceApi.getVoiceChannels(guildId);
setChannels(ch);
} catch {
} catch (err) {
console.error("useVoiceChannels:", err);
setChannels([]);
} finally {
setLoading(false);