😱
Some checks are pending
Release / Build Equicord (push) Waiting to run
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-05-28 14:30:17 -04:00
parent 734cbd579c
commit ffbc286b4b
No known key found for this signature in database

View file

@ -201,8 +201,13 @@ const userContextMenuPatch: NavContextMenuPatchCallback = (children, { user }: {
showToast("Refreshing timezone...", Toasts.Type.CLOCK);
try {
timezones[user.id] = await getTimezone(user.id, true);
const timezone = await getTimezone(user.id, true);
if (timezone) {
showToast("Timezone refreshed successfully!", Toasts.Type.SUCCESS);
} else {
showToast("Timezone reset successfully!", Toasts.Type.SUCCESS);
}
} catch (error) {
console.error("Failed to refresh timezone:", error);
showToast("Failed to refresh timezone.", Toasts.Type.FAILURE);