Skip to content

Commit

Permalink
Fix videos
Browse files Browse the repository at this point in the history
Signed-off-by: Kristina Fefelova <[email protected]>
  • Loading branch information
kristina-fefelova committed Dec 26, 2024
1 parent b241922 commit b19c19d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/love-resources/src/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ export const storePromise = writable<Promise<void>>(new Promise((resolve) => {})

function fillStores (): void {
const client = getClient()
if (client !== undefined || getCurrentAccount() != null) {
const account = getCurrentAccount() as PersonAccount | null
if (client !== undefined && account != null) {
const query = createQuery(true)
const roomPromise = new Promise<void>((resolve) =>
query.query(love.class.Room, {}, (res) => {
Expand All @@ -107,7 +108,7 @@ function fillStores (): void {
const requestPromise = new Promise<void>((resolve) =>
requestsQuery.query(
love.class.JoinRequest,
{ person: (getCurrentAccount() as PersonAccount).person, status: RequestStatus.Pending },
{ person: account.person, status: RequestStatus.Pending },
(res) => {
myRequests.set(res)
resolve()
Expand Down

0 comments on commit b19c19d

Please sign in to comment.