Skip to content

Commit

Permalink
feat: Allow deletion of delegate transactions from the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Oct 21, 2024
1 parent 1b82126 commit a76ff3c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/transactions/TxDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ const TxDetailsBlock = ({ txSummary, txDetails }: TxDetailsProps): ReactElement
const isUnsigned =
isMultisigExecutionInfo(txSummary.executionInfo) && txSummary.executionInfo.confirmationsSubmitted === 0

const isUntrusted =
const isTxFromProposer =
isMultisigDetailedExecutionInfo(txDetails.detailedExecutionInfo) &&
txDetails.detailedExecutionInfo.trusted === false
txDetails.detailedExecutionInfo.trusted &&
isUnsigned

const isUntrusted =
isMultisigDetailedExecutionInfo(txDetails.detailedExecutionInfo) && !txDetails.detailedExecutionInfo.trusted

// If we have no token list we always trust the transfer
const isTrustedTransfer = !hasDefaultTokenlist || isTrustedTx(txSummary)
Expand Down Expand Up @@ -117,7 +121,7 @@ const TxDetailsBlock = ({ txSummary, txDetails }: TxDetailsProps): ReactElement
</div>

{/* Signers */}
{!isUnsigned && (
{(!isUnsigned || isTxFromProposer) && (
<div className={css.txSigners}>
<TxSigners txDetails={txDetails} txSummary={txSummary} />

Expand Down

0 comments on commit a76ff3c

Please sign in to comment.