mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 02:05:28 +00:00
Make the linter happy.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable react-hooks/rules-of-hooks */
|
||||
import { useHistory, useParams } from "react-router-dom";
|
||||
|
||||
import { Text } from "preact-i18n";
|
||||
@@ -44,7 +45,7 @@ export default function Open() {
|
||||
return;
|
||||
}
|
||||
|
||||
let user = client.users.get(id);
|
||||
const user = client.users.get(id);
|
||||
if (user) {
|
||||
const channel: string | undefined = [
|
||||
...client.channels.values(),
|
||||
@@ -68,7 +69,7 @@ export default function Open() {
|
||||
}
|
||||
|
||||
history.push("/");
|
||||
}, []);
|
||||
});
|
||||
|
||||
return (
|
||||
<Header placement="primary">
|
||||
|
||||
Reference in New Issue
Block a user