diff --git a/components/ReportCard.tsx b/components/ReportCard.tsx index a44734a..8a63dc7 100644 --- a/components/ReportCard.tsx +++ b/components/ReportCard.tsx @@ -25,9 +25,7 @@ export default function (props: ReportCardProps & { port?: MessagePort }) { const actionMap: { [k: number]: number } = {}; for (let i = 0; i < props.target_ids.length; i++) - Object.defineProperty(targetMap, props.target_ids[i], { - value: props.target_usernames[i], - }); + targetMap[props.target_ids[i]] = props.target_usernames[i]; async function submitActions() { setLoading(true);