Merge pull request #338 from emrysal/main
commit
bdf736c70f
|
@ -215,6 +215,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||
},
|
||||
].filter((availability): boolean => typeof availability["days"] !== "undefined");
|
||||
|
||||
workingHours.sort((a, b) => a.startTime - b.startTime);
|
||||
|
||||
return {
|
||||
props: {
|
||||
user,
|
||||
|
|
|
@ -850,6 +850,8 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ req, query
|
|||
},
|
||||
];
|
||||
|
||||
availability.sort((a, b) => a.startTime - b.startTime);
|
||||
|
||||
return {
|
||||
props: {
|
||||
user,
|
||||
|
|
Loading…
Reference in New Issue