Skip to content

Commit 9bdea33

Browse files
committed
Clean up comments
1 parent 1ea629e commit 9bdea33

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/pages/quotes/QuotePage.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Button } from "@/components/ui/button"
66
import { Skeleton } from "@/components/ui/skeleton"
77
import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table"
88
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"
9-
import { IdentityPublicData, PayeePublicData, InfoReply, AnonPublicData, KeySetInfo } from "@/generated/client"
9+
import { IdentityPublicData, PayeePublicData, InfoReply, AnonPublicData } from "@/generated/client"
1010
import {
1111
adminLookupQuoteOptions,
1212
adminLookupQuoteQueryKey,
@@ -339,7 +339,6 @@ function QuoteActions({
339339
const onActivateKeyset = () => {
340340
activateKeysetMutation.mutate()
341341
}
342-
343342
return (
344343
<div className="flex items-center gap-2">
345344
{value.status === "Pending" ? (
@@ -416,7 +415,7 @@ function QuoteActions({
416415
</div>
417416
</OfferConfirmDrawer>
418417

419-
{(value.status === "Accepted" || value.status === "Offered") && "keyset_id" in value ? (
418+
{value.status === "Accepted" && "keyset_id" in value ? (
420419
<ConfirmDrawer
421420
title="Confirm activating keyset"
422421
description="Are you sure you want to activate the keyset for this quote?"
@@ -425,6 +424,7 @@ function QuoteActions({
425424
onSubmit={() => {
426425
onActivateKeyset()
427426
setActivateKeysetConfirmDrawerOpen(false)
427+
keysetActive = true
428428
}}
429429
submitButtonText="Yes, activate keyset"
430430
trigger={
@@ -586,8 +586,6 @@ function AnonPublicDataCard({ value }: { value?: AnonPublicData }) {
586586
function PayeePublicDataCard({ value }: { value?: PayeePublicData }) {
587587
if (!value) return null
588588

589-
console.log("Payee public data", value)
590-
591589
if ("Ident" in value) {
592590
const identData = (value as { Ident: IdentityPublicData }).Ident
593591
return IdentityPublicDataCard({ value: identData })
@@ -600,8 +598,6 @@ function PayeePublicDataCard({ value }: { value?: PayeePublicData }) {
600598
}
601599

602600
function Quote({ value, isFetching }: { value: InfoReply; isFetching: boolean }) {
603-
console.log("Quote Page", value)
604-
605601
const shouldFetchKeyset = (value.status === "Offered" || value.status === "Accepted") && "keyset_id" in value
606602

607603
const keysetId = "keyset_id" in value ? value.keyset_id : ""
@@ -617,7 +613,6 @@ function Quote({ value, isFetching }: { value: InfoReply; isFetching: boolean })
617613

618614
let keysetActive = false
619615
if (keysetData) {
620-
console.log("Keyset Info:", keysetData)
621616
if ("data" in keysetData && keysetData.data !== undefined) {
622617
keysetActive = keysetData.data.active
623618
}

0 commit comments

Comments
 (0)