CLASSROOMIO-T-113: Settings for landing page

Merge-request: CLASSROOMIO-MR-23
Merged-by: Best Admin <[email protected]>

Co-authored-by: Ifeanyi Nwosu <[email protected]>
Co-authored-by: Rotimi Best <[email protected]>


Merge-request: CLASSROOMIO-MR-50
Merged-by: Best Admin <[email protected]>
This commit is contained in:
tunny17
2023-08-21 15:44:15 +00:00
committed by Space Cloud
co-authored by Ifeanyi Nwosu Rotimi Best
parent 2b36d0af67
commit 32d0198d3d
9 changed files with 618 additions and 36 deletions
+4 -4
View File
@@ -58,11 +58,11 @@
upsert: false
});
if (data && data.Key) {
const { publicURL } = supabase.storage.from('avatars').getPublicUrl(filename);
if (data) {
const { data: response } = supabase.storage.from('avatars').getPublicUrl(filename);
updates.avatar_url = publicURL;
currentProfile.avatar_url = publicURL;
updates.avatar_url = response.publicUrl;
currentProfile.avatar_url = response.publicUrl;
}
avatar = undefined;
}