Rename [slug] to [contractSlug]
This commit is contained in:
parent
b87e751b2d
commit
ab2011609f
|
@ -17,13 +17,13 @@ import { Contract, getContractFromSlug } from '../../lib/firebase/contracts'
|
||||||
import { SEO } from '../../components/SEO'
|
import { SEO } from '../../components/SEO'
|
||||||
|
|
||||||
export async function getStaticProps(props: { params: any }) {
|
export async function getStaticProps(props: { params: any }) {
|
||||||
const { username, slug } = props.params
|
const { username, contractSlug } = props.params
|
||||||
const contract = (await getContractFromSlug(slug)) || null
|
const contract = (await getContractFromSlug(contractSlug)) || null
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
username,
|
username,
|
||||||
slug,
|
slug: contractSlug,
|
||||||
contract,
|
contract,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user