Skip to content

Commit 8da71ed

Browse files
committed
address coderabbit comments
1 parent 63d9f04 commit 8da71ed

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

apps/dashboard/src/@/api/support.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs";
33
import type { SupportTicket } from "../../app/(app)/team/[team_slug]/(team)/~/support/types/tickets";
44
import { getAuthToken, getAuthTokenWalletAddress } from "./auth-token";
55

6+
const ESCALATION_FEEDBACK_RATING = 9999;
7+
68
export async function createSupportTicket(params: {
79
message: string;
810
teamSlug: string;
@@ -70,7 +72,7 @@ export async function createSupportTicket(params: {
7072
},
7173
body: JSON.stringify({
7274
conversationId: params.conversationId,
73-
feedbackRating: 9999,
75+
feedbackRating: ESCALATION_FEEDBACK_RATING,
7476
}),
7577
});
7678
}

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/support/_components/shared/SupportForm_DescriptionInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export function DescriptionInput(props: Props) {
2424
autoComplete="off"
2525
maxLength={10000}
2626
name="markdown"
27+
onChange={(e) => props.onChange(e.target.value)}
28+
value={props.value}
2729
placeholder={props.placeholder ?? defaultDescription}
2830
required
2931
rows={5}

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/support/apis/tickets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "server-only";
12
import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs";
23
import type {
34
SupportMessage,

0 commit comments

Comments
 (0)