Skip to content

Commit 009f672

Browse files
authored
Merge pull request #367 from sherlock-protocol/feat/protocols-slug
feat: update protocols slug
2 parents 7e79c70 + c037f95 commit 009f672

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/Protocol/Protocol.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export const ProtocolPage: React.FC = () => {
5959
if (!protocols) return
6060

6161
if (protocolTag) {
62-
const found = Object.entries(protocols).find(([_, p]) => p.tag === protocolTag)
62+
const found = Object.entries(protocols).find(
63+
([_, p]) => p.name && p.name.toLowerCase().replaceAll(" ", "_") === protocolTag
64+
)
6365

6466
if (found) {
6567
const [_, protocol] = found

0 commit comments

Comments
 (0)