Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

only restrict sourceAccount.payoutsEnabledAt

Steven Tey058eb76ad634
diff --git a/apps/web/lib/actions/partners/merge-partner-accounts.ts b/apps/web/lib/actions/partners/merge-partner-accounts.ts
index 2a05ac7dfa..5b0d5b8d3e 100644
--- a/apps/web/lib/actions/partners/merge-partner-accounts.ts
+++ b/apps/web/lib/actions/partners/merge-partner-accounts.ts
@@ -136,9 +136,9 @@ const sendTokens = async ({
);
}
- if (sourceAccount.payoutsEnabledAt || targetAccount.payoutsEnabledAt) {
+ if (sourceAccount.payoutsEnabledAt) {
throw new Error(
- "Account merging is not available if payouts are enabled on either account. Please contact our support for assistance.",
+ "Account merging is not available if payouts are enabled on the source account. Please contact our support for assistance.",
);
}
diff --git a/apps/web/ui/partners/merge-accounts/send-verification-code-form.tsx b/apps/web/ui/partners/merge-accounts/send-verification-code-form.tsx
index e53765a0ee..ef2fc2f026 100644
--- a/apps/web/ui/partners/merge-accounts/send-verification-code-form.tsx
+++ b/apps/web/ui/partners/merge-accounts/send-verification-code-form.tsx
@@ -64,7 +64,7 @@ export function SendVerificationCodeForm({
return (
<form onSubmit={handleSubmit(onSubmit)} className="space-y-6">
<p className="text-sm font-medium text-neutral-700">
- Enter the email of the account you'd like to merge. We'll send a
+ Enter the emails of the accounts you'd like to merge. We'll send a
verification code to both emails.
</p>