Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix button text and copying
  • Loading branch information
regalijan committed Dec 17, 2024
1 parent 621dbed commit 641d372
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/routes/events-team_.report.tsx
Expand Up @@ -135,18 +135,18 @@ export default function () {
</TableContainer>
<Button
colorScheme="blue"
my="16px"
onClick={async () => {
await navigator.clipboard.writeText(
`local Report = {
${Object.values(data.members)
.map((v) => `[${v.roblox_id}] = ${v.points};`)
.join("\n")}
}`,
${Object.values(data.members)
.map((v) => `[${v.roblox_id}] = ${v.points};`)
.join("\n ")}
}`,
);

alert("Report copied.");
}}
pt="16px"
>
Copy Report
</Button>
Expand Down

0 comments on commit 641d372

Please sign in to comment.