fix: update to cancel_event dictionary key in an event related context (#14047)

to fix context for other languages than english
This commit is contained in:
Albert Borsos
2024-03-12 11:48:39 +00:00
committed by GitHub
parent 4eb11e76ea
commit 1a645f3110
@@ -162,7 +162,7 @@ function BookingListItem(booking: BookingItemProps) {
let bookedActions: ActionType[] = [
{
id: "cancel",
label: isTabRecurring && isRecurring ? t("cancel_all_remaining") : t("cancel"),
label: isTabRecurring && isRecurring ? t("cancel_all_remaining") : t("cancel_event"),
/* When cancelling we need to let the UI and the API know if the intention is to
cancel all remaining bookings or just that booking instance. */
href: `/booking/${booking.uid}?cancel=true${