mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-02 20:26:40 +00:00
fix: allow instance creation at 0 instances
This commit is contained in:
parent
62e6bbdc27
commit
310c5b98f5
@ -9,9 +9,10 @@
|
|||||||
let canCreate = false
|
let canCreate = false
|
||||||
$: {
|
$: {
|
||||||
instanceCount = values($globalInstancesStore).length
|
instanceCount = values($globalInstancesStore).length
|
||||||
canCreate = [SubscriptionType.Lifetime, SubscriptionType.Premium].includes(
|
canCreate =
|
||||||
$userSubscriptionType,
|
[SubscriptionType.Lifetime, SubscriptionType.Premium].includes(
|
||||||
)
|
$userSubscriptionType,
|
||||||
|
) || instanceCount === 0
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user