Rename [slug] to [contractSlug]

This commit is contained in:
jahooma 2021-12-18 23:50:47 -06:00
parent b87e751b2d
commit ab2011609f

View File

@ -17,13 +17,13 @@ import { Contract, getContractFromSlug } from '../../lib/firebase/contracts'
import { SEO } from '../../components/SEO'
export async function getStaticProps(props: { params: any }) {
const { username, slug } = props.params
const contract = (await getContractFromSlug(slug)) || null
const { username, contractSlug } = props.params
const contract = (await getContractFromSlug(contractSlug)) || null
return {
props: {
username,
slug,
slug: contractSlug,
contract,
},