From afce31e53b52cac994e718845176d7f5eb8e43cc Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 10 Apr 2023 07:24:16 +0000 Subject: [PATCH] Lint Code [skip actions] --- src/handbook/src/backend/server.ts | 15 ++++++++++----- src/handbook/src/backend/types.ts | 2 +- src/handbook/src/ui/pages/AvatarsPage.tsx | 8 +++----- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/handbook/src/backend/server.ts b/src/handbook/src/backend/server.ts index b015287c7..fd8b83657 100644 --- a/src/handbook/src/backend/server.ts +++ b/src/handbook/src/backend/server.ts @@ -21,14 +21,19 @@ export function setTargetPlayer(player: number): void { * @param talents The level for the avatar's talents. */ export async function grantAvatar( - avatar: number, level = 90, - constellations = 6, talents = 6 + avatar: number, + level = 90, + constellations = 6, + talents = 6 ): Promise { return await fetch(`https://localhost:443/handbook/avatar`, { - method: "POST", body: JSON.stringify({ + method: "POST", + body: JSON.stringify({ player: targetPlayer.toString(), avatar: avatar.toString(), - level, constellations, talentLevels: talents + level, + constellations, + talentLevels: talents }) - }).then(res => res.json()); + }).then((res) => res.json()); } diff --git a/src/handbook/src/backend/types.ts b/src/handbook/src/backend/types.ts index deb6a4c04..857f1aebb 100644 --- a/src/handbook/src/backend/types.ts +++ b/src/handbook/src/backend/types.ts @@ -121,7 +121,7 @@ export enum ItemCategory { export type CommandResponse = { status: number | 200 | 500; message: string; -} +}; /** * Checks if a string is a page. diff --git a/src/handbook/src/ui/pages/AvatarsPage.tsx b/src/handbook/src/ui/pages/AvatarsPage.tsx index c51b99f8a..fe97e3a6d 100644 --- a/src/handbook/src/ui/pages/AvatarsPage.tsx +++ b/src/handbook/src/ui/pages/AvatarsPage.tsx @@ -26,11 +26,9 @@ class AvatarsPage extends React.PureComponent {
{listAvatars().map((avatar) => - avatar.id > 11000000 ? undefined : - + avatar.id > 11000000 ? undefined : ( + + ) )}