Excess luggage tarif management issue resolution

This commit is contained in:
Stephanos A
2026-07-16 12:01:44 +03:00
parent 8a77f23701
commit 2b4eeea8d7

View File

@@ -100,7 +100,7 @@ export default function BaggageTab({ allClasses, isOpen, onClose }: Props) {
<ConfirmDialog
isOpen={deleteConfirm.isOpen}
onClose={() => setDeleteConfirm({ isOpen: false, id: null })}
onConfirm={() => remove.mutate(deleteConfirm.id!)}
onConfirm={() => remove.mutate(deleteConfirm.id!, { onSuccess: () => setDeleteConfirm({ isOpen: false, id: null }) })}
title="Delete Allowance Rule"
message="Are you sure you want to delete this baggage allowance rule?"
confirmText="Delete"