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.

Update import-partnerstack-modal.tsx

Kiran K999687afd11d
diff --git a/apps/web/ui/modals/import-partnerstack-modal.tsx b/apps/web/ui/modals/import-partnerstack-modal.tsx
index 8d8c836d2c..73ed42d1b4 100644
--- a/apps/web/ui/modals/import-partnerstack-modal.tsx
+++ b/apps/web/ui/modals/import-partnerstack-modal.tsx
@@ -98,6 +98,7 @@ function TokenForm({ onClose }: { onClose: () => void }) {
e.preventDefault();
if (!workspaceId || !publicKey || !secretKey) {
+ toast.error("Please fill in all required fields.");
return;
}
@@ -150,7 +151,6 @@ function TokenForm({ onClose }: { onClose: () => void }) {
type="password"
id="secretKey"
value={secretKey}
- autoFocus={!isMobile}
onChange={(e) => setSecretKey(e.target.value)}
className="mt-1 block w-full rounded-md border border-neutral-200 px-3 py-2 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
required