Redundant conditional expression (#2894)
* remove redundant conditional expressions * remove redundant conditional expressionspull/2379/head^2
parent
24a3bfdf78
commit
6940c8d6cc
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
}
|
||||
: {
|
||||
|
|
Loading…
Reference in New Issue