mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 13:43:03 -04:00
😱
This commit is contained in:
parent
734cbd579c
commit
ffbc286b4b
1 changed files with 7 additions and 2 deletions
|
@ -201,8 +201,13 @@ const userContextMenuPatch: NavContextMenuPatchCallback = (children, { user }: {
|
||||||
showToast("Refreshing timezone...", Toasts.Type.CLOCK);
|
showToast("Refreshing timezone...", Toasts.Type.CLOCK);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
timezones[user.id] = await getTimezone(user.id, true);
|
const timezone = await getTimezone(user.id, true);
|
||||||
showToast("Timezone refreshed successfully!", Toasts.Type.SUCCESS);
|
|
||||||
|
if (timezone) {
|
||||||
|
showToast("Timezone refreshed successfully!", Toasts.Type.SUCCESS);
|
||||||
|
} else {
|
||||||
|
showToast("Timezone reset successfully!", Toasts.Type.SUCCESS);
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to refresh timezone:", error);
|
console.error("Failed to refresh timezone:", error);
|
||||||
showToast("Failed to refresh timezone.", Toasts.Type.FAILURE);
|
showToast("Failed to refresh timezone.", Toasts.Type.FAILURE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue