From 8b1b93cf6431d2c9a13dc7a0b039b9863c9cb0de Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Fri, 30 Jun 2023 21:40:37 -0700 Subject: [PATCH] fix: upgrades --- store/server.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/store/server.ts b/store/server.ts index 25a7f43ff..ff084d389 100644 --- a/store/server.ts +++ b/store/server.ts @@ -101,11 +101,17 @@ export const useServerStore = defineStore('server', () => { const serverPurchasePayload = computed((): ServerPurchaseCallbackSendPayload => { let keyTypeForPurchase: ServerKeyTypeForPurchase = 'Trial'; switch (state.value) { - case 'BASIC': keyTypeForPurchase = 'Basic'; - case 'PLUS': keyTypeForPurchase = 'Plus'; - case 'PRO': keyTypeForPurchase = 'Pro'; + case 'BASIC': + keyTypeForPurchase = 'Basic'; + break; + case 'PLUS': + keyTypeForPurchase = 'Plus'; + break; + case 'PRO': + keyTypeForPurchase = 'Pro'; + break; } - return { + const server = { deviceCount: deviceCount.value, email: email.value, guid: guid.value, @@ -114,7 +120,9 @@ export const useServerStore = defineStore('server', () => { registered: registered.value ?? false, state: state.value, site: site.value, - } + }; + console.debug('[serverPurchasePayload] server', server); + return server; }); const serverAccountPayload = computed((): ServerAccountCallbackSendPayload => {