Skip to content

Commit

Permalink
fix: claiming enabled while claiming
Browse files Browse the repository at this point in the history
When a user clicks "Claim" the other "Claim"
buttons for the rest of the available transcripts
should be disabled. That's not happening.
This commit fixes this.

Although the buttons were clickable the user
could not claim multiple transcripts. The only
side-effect was that with every click the
`/api/github/{fork,newBranch}` endpoints
were called, therefore creating a new "review
branch" for every click.
  • Loading branch information
kouloumos authored and Extheoisah committed May 28, 2024
1 parent 65d4030 commit f2ca54c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/tables/QueueTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ const QueueTable = () => {
modifier: (data) => data.id,
component: (data) => (
<Button
isDisabled={claimState.rowId !== -1}
isLoading={data.id == claimState.rowId}
bgColor={"#EB9B00"}
color="white"
Expand Down

0 comments on commit f2ca54c

Please sign in to comment.