Skip to content

fix uniquness, fix ctrl+click to open in new tab#1

Merged
noamzaks merged 2 commits into
mainfrom
fix/unique-seed-statistics
Jul 25, 2025
Merged

fix uniquness, fix ctrl+click to open in new tab#1
noamzaks merged 2 commits into
mainfrom
fix/unique-seed-statistics

Conversation

@DvirKomlosh

Copy link
Copy Markdown
Collaborator

No description provided.

@@ -1,4 +1,4 @@
import { Button } from "@mantine/core"
import { Anchor, Button } from "@mantine/core"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this import


const uniqueRoundResults = roundResults.filter(
(result: any, index: number, self: any[]) =>
self.findIndex((r) => r.seed === result.seed) === index

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be better if you use a set of seeds and check every time if it's in the set already, but this is alright aswell

<Button
component="a"
leftSection={<i className="fa-solid fa-play" />}
onClick={() =>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has the small downside of not using react router which causes page refreshes and delays, but it's ok

@noamzaks noamzaks merged commit 816e7ab into main Jul 25, 2025
2 checks passed
@noamzaks noamzaks deleted the fix/unique-seed-statistics branch July 25, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants