Merge pull request #338 from emrysal/main

This commit is contained in:
Bailey Pumfleet 2021-07-03 19:53:35 +01:00 committed by GitHub
commit bdf736c70f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -215,6 +215,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
}, },
].filter((availability): boolean => typeof availability["days"] !== "undefined"); ].filter((availability): boolean => typeof availability["days"] !== "undefined");
workingHours.sort((a, b) => a.startTime - b.startTime);
return { return {
props: { props: {
user, user,

View file

@ -850,6 +850,8 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ req, query
}, },
]; ];
availability.sort((a, b) => a.startTime - b.startTime);
return { return {
props: { props: {
user, user,