Skip to content
Extraits de code Groupes Projets
Valider d5452441 rédigé par hamza.bouslama's avatar hamza.bouslama
Parcourir les fichiers

Additional modification needed

parent 012c5ce1
Branches
1 requête de fusion!509Additional modification needed
Pipeline #19227 réussi avec l'étape
in 4 minutes et 52 secondes
...@@ -127,7 +127,7 @@ export default function RefundOrderListView() { ...@@ -127,7 +127,7 @@ export default function RefundOrderListView() {
value: '', value: '',
label: 'Tous', label: 'Tous',
color: 'default' as const, color: 'default' as const,
count: totalElements || 0, count: Object.values(methodCounts).reduce((sum : number, count) => sum + Number(count), 0),
}, },
{ {
value: RefundMethod.CREDIT_CARD, value: RefundMethod.CREDIT_CARD,
...@@ -147,6 +147,12 @@ export default function RefundOrderListView() { ...@@ -147,6 +147,12 @@ export default function RefundOrderListView() {
color: getRefundMethodColor(RefundMethod.MANUAL) as LabelColor, color: getRefundMethodColor(RefundMethod.MANUAL) as LabelColor,
count: methodCounts[RefundMethod.MANUAL] || 0, count: methodCounts[RefundMethod.MANUAL] || 0,
}, },
{
value: RefundMethod.PAYPLUG,
label: refundMethodLabels[RefundMethod.PAYPLUG],
color: getRefundMethodColor(RefundMethod.PAYPLUG) as LabelColor,
count: methodCounts[RefundMethod.PAYPLUG] || 0,
},
]; ];
const handleFilters = useCallback( const handleFilters = useCallback(
......
0% ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter