Skip to content

Commit 1490dfe

Browse files
committed
fix: protocol name could be undefined
1 parent be9b6db commit 1490dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/Protocol/Protocol.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const ProtocolPage: React.FC = () => {
6060

6161
if (protocolTag) {
6262
const found = Object.entries(protocols).find(
63-
([_, p]) => p.name.toLowerCase().replaceAll(" ", "_") === protocolTag
63+
([_, p]) => p.name?.toLowerCase().replaceAll(" ", "_") === protocolTag
6464
)
6565

6666
if (found) {

0 commit comments

Comments
 (0)