mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 16:31:12 -05:00
Fix: Resolve internal server error
This commit is contained in:
@@ -97,7 +97,7 @@ export function AccountProfileTab() {
|
||||
.maybeSingle();
|
||||
|
||||
if (!error && data) {
|
||||
setDeletionRequest(data);
|
||||
setDeletionRequest(data as AccountDeletionRequest);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -112,8 +112,8 @@ export function AccountProfileTab() {
|
||||
// Use the update_profile RPC function with server-side validation
|
||||
const { data: result, error } = await supabase.rpc('update_profile', {
|
||||
p_username: data.username,
|
||||
p_display_name: data.display_name || null,
|
||||
p_bio: data.bio || null
|
||||
p_display_name: data.display_name || '',
|
||||
p_bio: data.bio || ''
|
||||
});
|
||||
|
||||
if (error) {
|
||||
@@ -219,7 +219,7 @@ export function AccountProfileTab() {
|
||||
.maybeSingle();
|
||||
|
||||
if (!error && data) {
|
||||
setDeletionRequest(data);
|
||||
setDeletionRequest(data as AccountDeletionRequest);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user