Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: submission list refresh after save (#122)

bautistaaa757a81a47e07
diff --git a/src/components/challenge/submissions.tsx b/src/components/challenge/submissions.tsx
index a3d09e5e..f3c9a24f 100644
--- a/src/components/challenge/submissions.tsx
+++ b/src/components/challenge/submissions.tsx
@@ -21,7 +21,7 @@ interface Props {
type Status = 'all' | 'accepted' | 'rejected';
export function Submissions({ challenge }: Props) {
const [selectedStatus, setSelectStatus] = useState<Status>('all');
- const [submissions] = useState(challenge.Solution);
+ const submissions = challenge.Solution;
const filteredSubmissions = useMemo(() => {
const predicate = (submission: Solution) => {