fix more errors

This commit is contained in:
Hayden 2023-03-22 21:45:32 -08:00
parent 486af7e004
commit ea6251ab62
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 1 additions and 16 deletions

View file

@ -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();

View file

@ -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();
}
}