Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: update profile

phamhieuc4677d68a821
diff --git a/studio/stores/UiStore.ts b/studio/stores/UiStore.ts
index 4d31b51126e..e2f46376a38 100644
--- a/studio/stores/UiStore.ts
+++ b/studio/stores/UiStore.ts
@@ -106,12 +106,10 @@ export default class UiStore implements IUiStore {
}
setProfile(value?: User) {
- if (value?.id != this.profile?.id) {
- this.profile = value
-
- if (value) {
- Telemetry.sendIdentify(value)
- }
+ if (value && value?.id != this.profile?.id) {
+ Telemetry.sendIdentify(value)
}
+
+ this.profile = value
}
}