Skip to content

Commit

Permalink
(fix) Fix variable reference in search.ts
Browse files Browse the repository at this point in the history
(fix) Fix types in InlineCode
  • Loading branch information
rrw-zilliqa committed Sep 30, 2024
1 parent d45bec1 commit 9dbf913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/InlineCode.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";

type InlineCodeProps = React.PropsWithChildren<{
children: React.RectNode;
children: React.ReactNode;
}>;

const InlineCode: React.FC<InlineCodeProps> = ({ children }) => (
Expand Down
2 changes: 1 addition & 1 deletion src/search/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ const doSearch = async (q: string, navigate: NavigateFunction) => {
const mayBeValidator = q.substring(10);
// Validator by index
if (mayBeValidator.match(/^\d+$/)) {
console.log(`validator: ${validator}`);
console.log(`search: validator: ${mayBeValidator}`);
const validatorIndex = parseInt(mayBeValidator);
navigate(`/validator/${validatorIndex}`);
return;
Expand Down

0 comments on commit 9dbf913

Please sign in to comment.