Skip to content

Commit 6dbb1f6

Browse files
committed
create: discord role sync & identity syc
1 parent ffc8415 commit 6dbb1f6

File tree

13 files changed

+797
-648
lines changed

13 files changed

+797
-648
lines changed

deploy-functions.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ SUPABASE_ACCESS_TOKEN=$SUPABASE_ACCESS_TOKEN npx supabase functions deploy rebal
5252
echo "📦 Deploying send-invitation..."
5353
SUPABASE_ACCESS_TOKEN=$SUPABASE_ACCESS_TOKEN npx supabase functions deploy send-invitation --project-ref $SUPABASE_PROJECT_REF --no-verify-jwt
5454

55+
56+
# Deploy Discord role sync
57+
echo "📦 Deploying discord-role-sync..."
58+
SUPABASE_ACCESS_TOKEN=$SUPABASE_ACCESS_TOKEN npx supabase functions deploy discord-role-sync --project-ref $SUPABASE_PROJECT_REF --no-verify-jwt
59+
60+
5561
# Deploy process-scheduled-rebalances
5662
echo "📦 Deploying process-scheduled-rebalances..."
5763
SUPABASE_ACCESS_TOKEN=$SUPABASE_ACCESS_TOKEN npx supabase functions deploy process-scheduled-rebalances --project-ref $SUPABASE_PROJECT_REF

public/Title.png

236 KB
Loading

src/components/ChangePasswordModal.tsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,24 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
9494

9595
if (updateError) {
9696
setError(updateError.message);
97-
} else {
98-
toast({
99-
title: "Password Updated",
100-
description: "Your password has been successfully changed.",
101-
});
102-
handleClose();
97+
setIsLoading(false);
98+
return;
10399
}
100+
101+
// Success - show toast and close modal
102+
toast({
103+
title: "Password Updated",
104+
description: "Your password has been successfully changed.",
105+
});
106+
107+
// Reset form and close modal
108+
resetForm();
109+
onClose();
110+
111+
// Optional: Refresh the page after a short delay to ensure auth state is updated
112+
setTimeout(() => {
113+
window.location.reload();
114+
}, 1500);
104115
} catch (err) {
105116
setError("An unexpected error occurred. Please try again.");
106117
console.error("Password change error:", err);

0 commit comments

Comments
 (0)