We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7af5758 commit 0523107Copy full SHA for 0523107
dashboard/src/pages/_dashboard._index.tsx
@@ -240,7 +240,8 @@ const Dashboard = () => {
240
241
const handleCreateUserSuccess = async (user: UserResponse) => {
242
if (user.subscription_url) {
243
- await copy(user.subscription_url)
+ const subURL = user.subscription_url.startsWith('/') ? window.location.origin + user.subscription_url : user.subscription_url
244
+ await copy(subURL)
245
toast.success(t('userSettings.subscriptionUrlCopied'))
246
}
247
refreshAllUserData()
0 commit comments