Skip to content

Commit

Permalink
[Vue] Fix login menu
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Mar 22, 2024
1 parent 7bb5694 commit 3bc4771
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class AccountService {
public async retrieveAccount(): Promise<boolean> {
try {
const response = await axios.get<any>('api/account');
if (response.status === 200 && response.data) {
if (response.status === 200 && response.data?.login) {
const account = response.data;
this.store.setAuthentication(account);
return true;
Expand Down

0 comments on commit 3bc4771

Please sign in to comment.