Skip to content

Commit d3e8b2a

Browse files
Merge pull request #1878 from appwrite/fix-support
Fix undefined errors
2 parents 1b15ed2 + 2a6dbc7 commit d3e8b2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/components/support.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
(team) => !$plansInfo.get((team as Organization).billingPlan)?.premiumSupport
2929
);
3030
31-
$: upgradeURL = `${base}/organization-${freeOrganization.$id}/change-plan`;
31+
$: upgradeURL = `${base}/organization-${freeOrganization?.$id}/change-plan`;
3232
3333
$: supportTimings = `${utcHourToLocaleHour('16:00')} - ${utcHourToLocaleHour('00:00')} ${localeShortTimezoneName()}`;
3434

src/routes/(console)/organization-[organization]/change-plan/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@
241241
}
242242
}
243243
244-
$: isUpgrade = $plansInfo.get(selectedPlan).order > $currentPlan.order;
245-
$: isDowngrade = $plansInfo.get(selectedPlan).order < $currentPlan.order;
246-
$: isButtonDisabled = $organization.billingPlan === selectedPlan;
244+
$: isUpgrade = $plansInfo.get(selectedPlan).order > $currentPlan?.order;
245+
$: isDowngrade = $plansInfo.get(selectedPlan).order < $currentPlan?.order;
246+
$: isButtonDisabled = $organization?.billingPlan === selectedPlan;
247247
</script>
248248

249249
<svelte:head>

0 commit comments

Comments
 (0)