Skip to content

Commit

Permalink
make properties reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikue committed Jan 23, 2024
1 parent 647bc01 commit aceae36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export interface UserInfo {

export const useStatsStore = defineStore('stats', () => {
let leaderboardLoaded: boolean = false;
let leaderboardEntries: LeaderboardEntry[] = [];
let leaderboardEntries: LeaderboardEntry[] = reactive([]);
let leaderboardTimespan: LeaderboardTimespan = LeaderboardTimespan.Weekly;
let userInfo: UserInfo = {editsToday: 0, editsThisWeek: 0, editsAllTime: 0};
let cellsSubmitted: number = 0;
Expand Down Expand Up @@ -305,7 +305,7 @@ interface MessagePart {

export const useChatStore = defineStore('chat', () => {
let joinedChat: boolean = false;
let chatMessages: ChatMessage[] = [];
let chatMessages: ChatMessage[] = reactive([]);
let unreadMessages: boolean = false;

//const login = useLoginStore(); //TODO
Expand Down

0 comments on commit aceae36

Please sign in to comment.