diff --git a/src/handbook/src/ui/widgets/Character.tsx b/src/handbook/src/ui/widgets/Character.tsx index 6b69aabd4..b3ba3ac9e 100644 --- a/src/handbook/src/ui/widgets/Character.tsx +++ b/src/handbook/src/ui/widgets/Character.tsx @@ -37,10 +37,7 @@ class Character extends React.PureComponent { const characterName = nameSwitch[id] ?? name; return ( -
+
{name} { * Checks if this component should be showed. */ private shouldShow(): boolean { - return !(((window as any).hide) as string[]) - .includes(this.props.anchor.toLowerCase()); + return !((window as any).hide as string[]).includes(this.props.anchor.toLowerCase()); } render() { diff --git a/src/handbook/src/ui/widgets/SideBarButton.tsx b/src/handbook/src/ui/widgets/SideBarButton.tsx index 83248560d..ab0c66ba2 100644 --- a/src/handbook/src/ui/widgets/SideBarButton.tsx +++ b/src/handbook/src/ui/widgets/SideBarButton.tsx @@ -28,8 +28,7 @@ class SideBarButton extends React.PureComponent { * Checks if this component should be showed. */ private shouldShow(): boolean { - return !(((window as any).hide) as string[]) - .includes(this.props.anchor.toLowerCase()); + return !((window as any).hide as string[]).includes(this.props.anchor.toLowerCase()); } render() {