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>