Redundant conditional expression (#2894)

* remove redundant conditional expressions

* remove redundant conditional expressions
pull/2379/head^2
Hashen 2022-05-26 22:11:05 +05:30 committed by GitHub
parent 24a3bfdf78
commit 6940c8d6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 12 deletions

View File

@ -337,11 +337,9 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
weekStart: "Sunday",
brandColor: "",
darkBrandColor: "",
allowDynamicBooking: users.some((user) => {
allowDynamicBooking: !users.some((user) => {
return !user.allowDynamicBooking;
})
? false
: true,
}),
}
: {
name: user.name || user.username,

View File

@ -307,11 +307,9 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
weekStart: "Sunday",
brandColor: "",
darkBrandColor: "",
allowDynamicBooking: users.some((user) => {
allowDynamicBooking: !users.some((user) => {
return !user.allowDynamicBooking;
})
? false
: true,
}),
}
: {
name: user.name || user.username,

View File

@ -200,11 +200,9 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
theme: null,
brandColor: "",
darkBrandColor: "",
allowDynamicBooking: users.some((user) => {
allowDynamicBooking: !users.some((user) => {
return !user.allowDynamicBooking;
})
? false
: true,
}),
eventName: getDynamicEventName(dynamicNames, eventTypeSlug),
}
: {