chore: update
This commit is contained in:
@@ -130,8 +130,13 @@ export default function OrderTrackingScreen() {
|
||||
try {
|
||||
const res = await confirmReception(orderId);
|
||||
if (res.success) {
|
||||
const cat = res.category || '';
|
||||
let catLabel = '';
|
||||
if (cat === 'total') catLabel = ' (Total)';
|
||||
else if (cat.includes('zipette')) catLabel = ' (Zipette&Co)';
|
||||
else if (cat.includes('weed') || cat.includes('hash')) catLabel = ' (Weed&Hash)';
|
||||
showToast(
|
||||
`Livraison confirmee ! +${res.points_earned || 0} points`,
|
||||
`Livraison confirmee ! +${res.points_earned || 0} points${catLabel}`,
|
||||
"success",
|
||||
);
|
||||
fetchOrders();
|
||||
|
||||
Reference in New Issue
Block a user