Skip to content

Commit

Permalink
fix: Only show recovery expiry if its not null (#3174)
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan authored and compojoom committed Jan 30, 2024
1 parent 54a65dd commit 56a5ebb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/features/recovery/components/RecoveryDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ export function RecoveryDetails({ item }: { item: RecoveryQueueItem }): ReactEle
<TxDataRow title="Transaction hash">{generateDataRowValue(transactionHash, 'hash', true)}</TxDataRow>
<TxDataRow title="Created:">{dateString(Number(timestamp))}</TxDataRow>
<TxDataRow title="Executable:">{dateString(Number(validFrom))}</TxDataRow>
<TxDataRow title="Expires:">{dateString(Number(expiresAt))}</TxDataRow>

{Number(expiresAt) && <TxDataRow title="Expires:">{dateString(Number(expiresAt))}</TxDataRow>}
{expiresAt ? <TxDataRow title="Expires:">{dateString(Number(expiresAt))}</TxDataRow> : null}

<Link className={summaryCss.buttonExpand} onClick={toggleExpanded} component="button" variant="body1">
Advanced details
Expand Down

0 comments on commit 56a5ebb

Please sign in to comment.