Skip to content

Commit 2d34a18

Browse files
committed
Only allow keyset activation for accepted quotes
1 parent 540cfa7 commit 2d34a18

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pages/quotes/QuotePage.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,7 @@ function QuoteActions({ value, isFetching }: { value: InfoReply; isFetching: boo
422422
trigger={
423423
<Button
424424
className="flex-1"
425-
disabled={
426-
isFetching ||
427-
activateKeysetMutation.isPending ||
428-
(value.status !== "Offered" && value.status !== "Accepted")
429-
}
425+
disabled={isFetching || activateKeysetMutation.isPending || value.status !== "Accepted"}
430426
variant="default"
431427
>
432428
Activate Keyset {activateKeysetMutation.isPending && <LoaderIcon className="stroke-1 animate-spin" />}

0 commit comments

Comments
 (0)