Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Dec 4, 2023
1 parent cc0af89 commit 7742062
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
],
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ClubManagement/ClubManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const ClubManagement = () => {
/>
)}
<EditModal
object={state.editObject!}
object={state.editObject}
open={state.openEditModal}
onCreate={(club: Club) => {
updateClub(club);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/GameManagement/GameManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export const GameManagement = () => {
open={state.openEditModal}
onCreate={(match: Match) => { updateMatch(match); setState({ ...state, openEditModal: false }); }}
onCancel={() => setState({ ...state, openEditModal: false })}
object={state.editObject!}
object={state.editObject}
type='match'
action='edit'
>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Match/Match.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const _MatchContainer = (props: AbstractTeamType) => {
<Col md={12} sm={24} xs={24} className="left">
<Block>
<Title level={2}>
{match!.home!.name}
{match?.home?.name}
</Title>
<span style={{ display: "block", fontSize: "16px", textAlign: "center" }}>{homeTotalPoints} {t("general.points")}</span>
<Team
Expand Down Expand Up @@ -112,7 +112,7 @@ const _MatchContainer = (props: AbstractTeamType) => {
<Col md={12} sm={24} xs={24} className="right">
<Block>
<Title level={2}>
{match!.away!.name}
{match?.away?.name}
</Title>
<span style={{ display: "block", fontSize: "16px", textAlign: "center" }}>{awayTotalPoints} {t("general.points")}</span>
<Team
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PlayerManagement/PlayerManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const PlayerManagement = () => {
keyProperty="id"
textProperty="name"
placeholder={"Club"}
values={clubs!}
values={clubs}
/>
</FormItem>

Expand Down
2 changes: 1 addition & 1 deletion src/services/weeksApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const weeksApi = createApi({
query: () => "/deadline-info",
providesTags: (res, err, arg) =>
res
? [...res.weeks!.map(({ id }) => ({ type: "Week" as const, id })), "Week"]
? [...res.weeks.map(({ id }) => ({ type: "Week" as const, id })), "Week"]
: ["Week"]
}),

Expand Down

0 comments on commit 7742062

Please sign in to comment.