Skip to content

Commit

Permalink
fix: no loading when "Claim"
Browse files Browse the repository at this point in the history
When "Claim" is clicked, a loading indicator
should be displayed. That's not happening.
This commits fixes this.
  • Loading branch information
kouloumos authored and Extheoisah committed May 28, 2024
1 parent 686be94 commit 65d4030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
isLoading={data.id == claimState.rowId}
bgColor={"#EB9B00"}
color="white"
_hover={{ bgColor: "#EB9B00AE" }}
Expand All @@ -359,7 +360,7 @@ const QueueTable = () => {
),
},
] as TableStructure<Transcript>[],
[handleClaim]
[handleClaim, claimState.rowId]
);

return (
Expand Down

0 comments on commit 65d4030

Please sign in to comment.