Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Update license deactivation API endpoint

Richie McIlroy576927194f12
diff --git a/apps/web/components/pages/LicenseDeactivationPage.tsx b/apps/web/components/pages/LicenseDeactivationPage.tsx
index 85babaaac..cec27c200 100644
--- a/apps/web/components/pages/LicenseDeactivationPage.tsx
+++ b/apps/web/components/pages/LicenseDeactivationPage.tsx
@@ -22,17 +22,14 @@ export const LicenseDeactivationPage = () => {
setIsSubmitting(true);
try {
- const response = await fetch(
- "https://l.cap.so/api/commercial/deactivate",
- {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- licensekey: licenseKey.trim(),
- },
- body: JSON.stringify({ email: email.trim() }),
+ const response = await fetch("/api/commercial/deactivate", {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ licensekey: licenseKey.trim(),
},
- );
+ body: JSON.stringify({ email: email.trim() }),
+ });
const data = await response.json();