fix: redirection to FC site without checking payment method

This commit is contained in:
Jannat Patel
2025-03-20 11:57:08 +05:30
parent 7ae3cf5d95
commit 066eaea45d
4 changed files with 9 additions and 5 deletions

View File

@@ -234,10 +234,7 @@ const userDropdownOptions = computed(() => {
})
const loginToFrappeCloud = () => {
let redirect_to = '/dashboard/welcome'
if (userResource.data?.site_info.is_payment_method_added) {
redirect_to = '/dashboard/sites/' + userResource.data.sitename
}
let redirect_to = '/dashboard/sites/' + userResource.data.sitename
window.open(`${frappeCloudBaseEndpoint}${redirect_to}`, '_blank')
}
</script>

View File

@@ -72,7 +72,7 @@
</div>
<div
v-else-if="!batches.list.loading"
class="flex flex-col items-center justify-center text-sm text-ink-gray-5 italic mt-48"
class="flex flex-col items-center justify-center text-sm text-ink-gray-5 mt-48"
>
<BookOpen class="size-10 mx-auto stroke-1 text-ink-gray-4" />
<div class="text-lg font-medium mb-1">