Skip to content

Commit

Permalink
fix: can't show comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Dec 4, 2024
1 parent e71dfd2 commit f025f0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ export const admin = (() => {
return;
}

user.clear();
session.logout();
bootstrap.Modal.getOrCreateInstance('#loginModal').show();
};

const init = () => {
session.init();
comment.init();
theme.spyTop();

user = storage('user');
Expand All @@ -256,6 +256,7 @@ export const admin = (() => {
return;
}

comment.init();
getUserDetail();
getStatUser();
comment.comment();
Expand Down

0 comments on commit f025f0d

Please sign in to comment.