feat: fix typo

This commit is contained in:
tianyoulan
2022-04-28 15:35:17 +08:00
parent 0d91657557
commit 30f60f87f4
4 changed files with 8 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ import { Box, Button, Paper, TextField } from "@mui/material";
import { Virtuoso } from "react-virtuoso";
import { useTranslation } from "react-i18next";
import { ApiType } from "../services/types";
import { closeAllConnections, getInfomation } from "../services/api";
import { closeAllConnections, getInformation } from "../services/api";
import BasePage from "../components/base/base-page";
import ConnectionItem from "../components/connection/connection-item";
@@ -25,7 +25,7 @@ const ConnectionsPage = () => {
useEffect(() => {
let ws: WebSocket | null = null;
getInfomation().then((result) => {
getInformation().then((result) => {
const { server = "", secret = "" } = result;
ws = new WebSocket(`ws://${server}/connections?token=${secret}`);