Add optional chaining to fix log out and log in issue
This commit is contained in:
parent
5ba59adda7
commit
567c3a6d10
|
@ -5,7 +5,7 @@
|
||||||
import { licensing } from "stores/portal"
|
import { licensing } from "stores/portal"
|
||||||
import { isPremiumOrAbove } from "helpers/planTitle"
|
import { isPremiumOrAbove } from "helpers/planTitle"
|
||||||
|
|
||||||
$: premiumOrAboveLicense = isPremiumOrAbove($licensing?.license.plan.type)
|
$: premiumOrAboveLicense = isPremiumOrAbove($licensing?.license?.plan?.type)
|
||||||
|
|
||||||
let show
|
let show
|
||||||
let hide
|
let hide
|
||||||
|
|
|
@ -148,7 +148,7 @@ export const enrichedApps = derived([appsStore, auth], ([$store, $auth]) => {
|
||||||
deployed: app.status === AppStatus.DEPLOYED,
|
deployed: app.status === AppStatus.DEPLOYED,
|
||||||
lockedYou: app.lockedBy && app.lockedBy.email === $auth.user?.email,
|
lockedYou: app.lockedBy && app.lockedBy.email === $auth.user?.email,
|
||||||
lockedOther: app.lockedBy && app.lockedBy.email !== $auth.user?.email,
|
lockedOther: app.lockedBy && app.lockedBy.email !== $auth.user?.email,
|
||||||
favourite: $auth?.user.appFavourites?.includes(app.appId),
|
favourite: $auth.user?.appFavourites?.includes(app.appId),
|
||||||
}))
|
}))
|
||||||
: []
|
: []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue