Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/src/pages/ChallengesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ function ChallengesPage({ currentUser }) {
)}

{creating && (
// it looks like all of your submit buttons stay enabled as a request is being handled. This could lead to unexpected behavior if a user gets
// frustrated and spams a submit or delete button before each request processes. Disabling the button until the request completes could be
// beneficial.
<form className={styles.challengeCreateForm} onSubmit={handleCreate}>
<h2 tabIndex={-1} ref={createHeadingRef}>
Post a challenge
Expand Down