this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix ts errors

Hilke Ros d316ac3c e90e4c20

+3 -3
+2 -2
app/api/publishing-owner/route.ts
··· 1 1 import { NextRequest, NextResponse } from "next/server"; 2 - import { Client } from "@atproto/lex"; 2 + import { Client, AtIdentifierString } from "@atproto/lex"; 3 3 import { getSession } from "@/lib/auth/session"; 4 4 import { getOAuthClient } from "@/lib/auth/client"; 5 5 import * as ch from "@/src/lexicons/ch"; ··· 13 13 14 14 try { 15 15 const did = request.nextUrl.searchParams.get("did"); 16 - const repoDid = did || session.did; 16 + const repoDid = (did || session.did) as AtIdentifierString; 17 17 18 18 const client = await getOAuthClient(); 19 19 const oauthSession = await client.restore(session.did);
+1 -1
components/PublishingOwnerForm.tsx
··· 316 316 <div className="flex items-center gap-2"> 317 317 <button 318 318 type="submit" 319 - disabled={loading || (!firstName && !lastName && !companyName) || (ipi && !/^\d{11}$/.test(ipi.replace(/\s/g, '')))} 319 + disabled={loading || (!firstName && !lastName && !companyName) || (!!ipi && !/^\d{11}$/.test(ipi.replace(/\s/g, '')))} 320 320 className="inline-flex py-2 px-4 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50" 321 321 > 322 322 {loading ? "Saving..." : isEditing ? "Update Publishing Owner" : "Save Publishing Owner"}