Remove 'userIsOwner' from isCancelled (#7773)

This commit is contained in:
Alex van Andel authored and GitHub committed 2023-03-16 13:29:16 +00:00
1 parent 09af14b3f4
commit b20c0df4e8
1 file changed
+2 -4
+2 -4
View File
@@ -272,10 +272,8 @@ export default function Success(props: SuccessProps) {
const isCancelled = const isCancelled =
status === "CANCELLED" || status === "CANCELLED" ||
status === "REJECTED" || status === "REJECTED" ||
(isCancellationMode && (!!seatReferenceUid &&
(!!seatReferenceUid !bookingInfo.seatsReferences.some((reference) => reference.referenceUid === seatReferenceUid));
? !bookingInfo.seatsReferences.some((reference) => reference.referenceUid === seatReferenceUid)
: !userIsOwner));
const telemetry = useTelemetry(); const telemetry = useTelemetry();
useEffect(() => { useEffect(() => {