Fix weekStart passThrough + allow all days (#3108)
This commit is contained in:
1 parent
d440458794
commit
5ca914b32e
2 files changed
+12
No files matched your search
@@ -664,6 +664,13 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
|
||||
)*/}
|
||||
</div>
|
||||
<SlotPicker
|
||||
weekStart={
|
||||
typeof profile.weekStart === "string"
|
||||
? (["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].indexOf(
|
||||
profile.weekStart
|
||||
) as 0 | 1 | 2 | 3 | 4 | 5 | 6)
|
||||
: profile.weekStart /* Allows providing weekStart as number */
|
||||
}
|
||||
eventType={eventType}
|
||||
timezoneDropdown={timezoneDropdown}
|
||||
timeZone={timeZone}
|
||||
|
||||
Reference in new issue
Block a user