Fix cancel link on booking page

pull/136/head
Bailey Pumfleet 2021-04-30 13:06:04 +01:00
parent ea31607598
commit 27eb9ad95e
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export default function Book(props) {
</div>
<div>
<button type="submit" className="btn btn-primary">Confirm</button>
<Link href={"/" + props.user.username + "/" + props.eventType.id}>
<Link href={"/" + props.user.username + "/" + props.eventType.slug}>
<a className="ml-2 btn btn-white">Cancel</a>
</Link>
</div>
@ -108,6 +108,7 @@ export async function getServerSideProps(context) {
select: {
id: true,
title: true,
slug: true,
description: true,
length: true
}