diff --git a/frontend/layouts/default.vue b/frontend/layouts/default.vue index 971893b..393b4ee 100644 --- a/frontend/layouts/default.vue +++ b/frontend/layouts/default.vue @@ -94,7 +94,7 @@ import { useLabelStore } from "~~/stores/labels"; import { useLocationStore } from "~~/stores/locations"; - const username = computed(() => authCtx.self?.name || "User"); + const username = computed(() => authCtx.user?.name || "User"); // Preload currency format useFormatCurrency(); diff --git a/frontend/lib/api/user.ts b/frontend/lib/api/user.ts index 10a082b..1107acd 100644 --- a/frontend/lib/api/user.ts +++ b/frontend/lib/api/user.ts @@ -39,19 +39,4 @@ export class UserClient extends BaseAPI { Object.freeze(this); } - - /** @deprecated use this.user.self() */ - public self() { - return this.user.self(); - } - - /** @deprecated use this.user.logout() */ - public logout() { - return this.user.logout(); - } - - /** @deprecated use this.user.delete() */ - public deleteAccount() { - return this.user.delete(); - } }