Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vadim Golub <[email protected]>
  • Loading branch information
abtx and vdmgolub authored Aug 24, 2023
1 parent 5aff2e2 commit 246398b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/GlossaryPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import GlossaryTermPageAside from '../GlossaryTermPage/GlossaryTermPageAside';
import GlossaryTermPageContent from '../GlossaryTermPage/GlossaryTermPageContent';

const Term = ({ slug }: { slug: string }) => {
const term = terms.filter((term) => term.slug === slug)[0];
const term = terms.find((term) => term.slug === slug.toLowerCase());

if (!term) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlossaryTermPage/Cta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Cta = () => (
</p>
</div>
<a href="https://dashboard.infracost.io/" className="button medium flat primary">
Signup and get started now
Sign up and get started now
</a>
</div>
</div>
Expand Down

0 comments on commit 246398b

Please sign in to comment.