From 25aaa46e5da5f674017d0211b6f868c9f1472b49 Mon Sep 17 00:00:00 2001 From: dharaneesh-r Date: Mon, 22 Jun 2026 15:37:02 +0530 Subject: [PATCH] updates on the validations on th action button in the substitution page --- src/pages/nearle/riders/riders.js | 72 ++++++++++++++++--------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/src/pages/nearle/riders/riders.js b/src/pages/nearle/riders/riders.js index 9272a45..ed99329 100644 --- a/src/pages/nearle/riders/riders.js +++ b/src/pages/nearle/riders/riders.js @@ -1056,41 +1056,43 @@ const Riders = () => { - - - { - setEditingSub(row); - setNewSubRider(null); - }} - > - - - - - { - handleDeleteSubstitution(row); - }} - > - - - - + {(row.status || '').toLowerCase() !== 'cancelled' && ( + + + { + setEditingSub(row); + setNewSubRider(null); + }} + > + + + + + { + handleDeleteSubstitution(row); + }} + > + + + + + )} ))}