Skip to content

Commit 0523107

Browse files
committed
fix(dashboard): update subscription URL copy handling after user creation in quick actions
1 parent 7af5758 commit 0523107

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dashboard/src/pages/_dashboard._index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ const Dashboard = () => {
240240

241241
const handleCreateUserSuccess = async (user: UserResponse) => {
242242
if (user.subscription_url) {
243-
await copy(user.subscription_url)
243+
const subURL = user.subscription_url.startsWith('/') ? window.location.origin + user.subscription_url : user.subscription_url
244+
await copy(subURL)
244245
toast.success(t('userSettings.subscriptionUrlCopied'))
245246
}
246247
refreshAllUserData()

0 commit comments

Comments
 (0)