Remove 'userIsOwner' from isCancelled (#7773)

pull/7752/head^2
Alex van Andel 2023-03-16 13:29:16 +00:00 committed by GitHub
parent 09af14b3f4
commit b20c0df4e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

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(() => {