Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

Commit 661d9c6

Browse files
fix: match resource name without case sensitivity to render correct docs page (#364)
1 parent 95d9419 commit 661d9c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hooks/use-help-docs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const resourceToModule = (
3434
| typeof ContributingMarkdown
3535
| typeof HowToMarkdown
3636
| typeof OverviewMarkdown => {
37-
switch (resource) {
38-
case HelpResource.Contributing:
37+
switch (resource.toLowerCase()) {
38+
case HelpResource.Contributing.toLowerCase():
3939
return ContributingMarkdown;
40-
case HelpResource.HowTo:
40+
case HelpResource.HowTo.toLowerCase():
4141
return HowToMarkdown;
42-
case HelpResource.Overview:
42+
case HelpResource.Overview.toLowerCase():
4343
default:
4444
return OverviewMarkdown;
4545
}

0 commit comments

Comments
 (0)