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.

added correct link

Steven Tey29cbf23d23db
diff --git a/components/app/modals/import-short-modal.tsx b/components/app/modals/import-short-modal.tsx
index e4ab74e49f..133ef53003 100644
--- a/components/app/modals/import-short-modal.tsx
+++ b/components/app/modals/import-short-modal.tsx
@@ -19,7 +19,6 @@ import useSWR, { mutate } from "swr";
import { ShortioDomainProps } from "#/lib/types";
import Tooltip, { InfoTooltip, SimpleTooltipContent } from "#/ui/tooltip";
import { fetcher, nFormatter } from "#/lib/utils";
-import { HOME_DOMAIN } from "#/lib/constants";
function ImportShortModal({
showImportShortModal,
@@ -237,9 +236,9 @@ function ImportShortModal({
<InfoTooltip
content={
<SimpleTooltipContent
- title="Your Short.io API Key can be found in your Short.io account settings."
+ title={`Your Short.io API Key can be found in your Short.io account under "Integrations & API".`}
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/import-from-short-io`}
+ href="https://short.io/features/api"
/>
}
/>
diff --git a/pages/api/projects/[slug]/import/short.ts b/pages/api/projects/[slug]/import/short.ts
index 628d9e6727..bec10e133d 100644
--- a/pages/api/projects/[slug]/import/short.ts
+++ b/pages/api/projects/[slug]/import/short.ts
@@ -10,7 +10,7 @@ export default withProjectAuth(async (req, res, project) => {
if (req.method === "GET") {
const accessToken = await redis.get(`import:short:${project.id}`);
if (!accessToken) {
- return res.status(200).end("No Short.io access token found");
+ return res.status(400).end("No Short.io access token found");
}
const response = await fetch(`https://api.short.io/api/domains`, {