Skip to content

Commit

Permalink
Merge branch 'main' into tweaks_15.10_random
Browse files Browse the repository at this point in the history
  • Loading branch information
albinagu authored Oct 15, 2024
2 parents c9fb816 + 4a1d731 commit 72f6949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const DelegationViewModal = ({
<IdentityCard
label={formatMessage(m.validTo)}
title={
delegation?.validTo && isValid(delegation.validTo)
delegation?.validTo && isValid(new Date(delegation.validTo))
? format(new Date(delegation?.validTo), 'dd.MM.yyyy')
: formatMessage(m.noValidToDate)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,11 @@ export const DelegationsOutgoing = () => {
<AccessCard
key={delegation.id}
delegation={delegation}
onDelete={
!isGeneralMandate
? (delegation) => {
setDelegation(
delegation as AuthCustomDelegationOutgoing,
)
}
: undefined
}
onDelete={(delegation) => {
setDelegation(
delegation as AuthCustomDelegationOutgoing,
)
}}
onEdit={
!isGeneralMandate
? (delegation) =>
Expand Down

0 comments on commit 72f6949

Please sign in to comment.