Auto-prettification

This commit is contained in:
jahooma 2022-09-18 00:20:50 +00:00 committed by github-actions[bot]
parent 436646cc47
commit 42f66b11f4

View File

@ -7,7 +7,8 @@ export const searchClient = algoliasearch(
)
const indexPrefix = ENV === 'DEV' ? 'dev-' : ''
export const searchIndexName = ENV === 'DEV' ? 'dev-contracts' : 'contractsIndex'
export const searchIndexName =
ENV === 'DEV' ? 'dev-contracts' : 'contractsIndex'
export const getIndexName = (sort: string) => {
return `${indexPrefix}contracts-${sort}`