Skip to content

Commit

Permalink
fix: fix for cr
Browse files Browse the repository at this point in the history
  • Loading branch information
leleOFA committed Feb 18, 2025
1 parent 795745d commit 5b2fb31
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const NotificationPaymentRecipient: React.FC<Props> = ({
};

useEffect(() => {
console.log('errorOnPayment :>> ', errorOnPayment);
const unpaidPayments = pagoPaF24.some((f) => f.pagoPa?.status === PaymentStatus.REQUIRED);
if (isSinglePayment && unpaidPayments) {
setSelectedPayment(pagoPaF24[0] ?? { pagoPa: null });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('NotificationPaymentRecipient Component', () => {
expect(getByTestId('payment-error')).toBeInTheDocument();
});

// Clicca sul radioButton per correggere l'errore
// Click on the radioButton to correct the error
fireEvent.click(radioButton!);

await waitFor(() => {
Expand Down
3 changes: 1 addition & 2 deletions packages/pn-pa-webapp/public/locales/it/notifiche.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"paid": "Pagato",
"f24-attached": "Modelli F24 allegati",
"attachments": "allegati",
"f24-dialog-title": "Modelli F24 allegati alla notifica {{iun}}",
"error-payment": "Seleziona un avviso di pagamento"
"f24-dialog-title": "Modelli F24 allegati alla notifica {{iun}}"
},
"table": {
"title": "Tabella delle notifiche",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"notificationsFrom": "Zustellungen von:",
"allNotifications": "Alle Zustellungen",
"active": "Aktivieren",
"pending": "Wartet auf Bestätigung"
"pending": "Wartet auf Bestätigung",
"menu-aria-label": "Aktionsmenü"
},
"revoke-successfully": "Vollmacht wurde widerrufen.",
"reject-successfully": "Vollmacht wurde abgelehnt."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"show-less": "See fewer details",
"cancelled-alert-text": "This notification has been canceled by the sending institution. You can ignore the content.",
"disclaimer-link": "Discover more",
"menu-aria-label": "Actions menu",
"payment": {
"title": "Payment",
"single-payment-subtitle": "The final amount may be different than what is indicated.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"payment-table-aria-label": "Détail des paiements",
"date": "Date d’envoi",
"payment-terms": "À payer avant le",
"menu-aria-label": "Menu actions",
"sender": "Expéditeur",
"recipient": "Destinataire",
"cancelled-iun": "Code IUN annulé",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"payment-table-aria-label": "Dettaglio pagamenti",
"date": "Data di invio",
"payment-terms": "Da pagare entro il",
"menu-aria-label": "Menù azioni",
"sender": "Mittente",
"recipient": "Destinatario",
"cancelled-iun": "Codice IUN annullato",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"payment-table-aria-label": "Podrobnosti o plačilih",
"date": "Datum pošiljanja",
"payment-terms": "Plačati do",
"menu-aria-label": "Meni dejanj",
"sender": "Pošiljatelj",
"recipient": "Prejemnik",
"cancelled-iun": "Koda IUN je preklicana",
Expand Down
25 changes: 11 additions & 14 deletions packages/pn-personafisica-webapp/src/pages/Deleghe.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,32 +59,29 @@ const Deleghe = () => {
PFEventStrategyFactory.triggerEvent(PFEventsType.SEND_MANDATE_REVOKED);
void dispatch(revokeMandate(id))
.unwrap()
.then(() =>
PFEventStrategyFactory.triggerEvent(PFEventsType.SEND_MANDATE_GIVEN, { delegators })
)
.then(() => {
dispatch(
.then(
() =>
PFEventStrategyFactory.triggerEvent(PFEventsType.SEND_MANDATE_GIVEN, { delegators }),
void dispatch(
appStateActions.addSuccess({
title: '',
message: t('deleghe.revoke-successfully'),
})
);
});
)
);
} else {
PFEventStrategyFactory.triggerEvent(PFEventsType.SEND_MANDATE_REJECTED);
void dispatch(rejectMandate(id))
.unwrap()
.then(() =>
PFEventStrategyFactory.triggerEvent(PFEventsType.SEND_HAS_MANDATE, { delegates })
)
.then(() => {
dispatch(
.then(
() => PFEventStrategyFactory.triggerEvent(PFEventsType.SEND_HAS_MANDATE, { delegates }),
void dispatch(
appStateActions.addSuccess({
title: '',
message: t('deleghe.reject-successfully'),
})
);
});
)
);
}
};

Expand Down

0 comments on commit 5b2fb31

Please sign in to comment.