From ea6251ab6237b473838d526bb47ed748d392378b Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Wed, 22 Mar 2023 21:45:32 -0800 Subject: [PATCH] fix more errors --- frontend/layouts/default.vue | 2 +- frontend/lib/api/user.ts | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) 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(); - } }