Skip to content

Commit

Permalink
fix flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nistadev authored and vsubhuman committed Oct 28, 2024
1 parent 9c27edd commit a99227a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type Props = {|
+buyButton?: Node,
+menu?: ?Node,
+pageBanner?: ?Node,
+isErrorPage?: boolean,
|};

@observer
Expand All @@ -31,7 +32,7 @@ class NavBarRevamp extends Component<Props> {
buyButton: undefined,
menu: undefined,
pageBanner: false,
pageBanner: false,
isErrorPage: false,
};

render(): Node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SwapPageContainer extends Component<AllProps> {
return false;
};

isErrorPage: boolean = () => {
isErrorPage: void => boolean = () => {
const { location } = this.props.stores.router;
if (location) {
return location.pathname.endsWith('page-error');
Expand Down

0 comments on commit a99227a

Please sign in to comment.