From 745e96853b8697b120ebf9822ac299b32a06c309 Mon Sep 17 00:00:00 2001 From: Danny Miller Date: Wed, 19 Jun 2024 13:16:56 -0400 Subject: [PATCH] fix bugs --- components/modal/reportModal.tsx | 6 ++++-- models/schemas/reportSchema.ts | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/modal/reportModal.tsx b/components/modal/reportModal.tsx index 18c09d666..03e8c49ee 100644 --- a/components/modal/reportModal.tsx +++ b/components/modal/reportModal.tsx @@ -31,9 +31,9 @@ export default function ReportModal({ targetId, reportType }: ReportModalProps) }, body: JSON.stringify({ targetId: targetId, - reportReason: 'OTHER', + reportReason: reason, reportType: reportType, - message: reason, + message: message, }), }); const resp = await res.json(); @@ -131,6 +131,8 @@ export default function ReportModal({ targetId, reportType }: ReportModalProps) value={message} placeholder={'Please provide a reason for reporting this ' + reportType.toLocaleLowerCase() + '.'} onChange={e => setMessage(e.target.value)} + // limit to 500 + maxLength={500} />