diff --git a/src/components/Setup/JellyfinSetup.tsx b/src/components/Setup/JellyfinSetup.tsx
index c795a2ff..a8fbc22d 100644
--- a/src/components/Setup/JellyfinSetup.tsx
+++ b/src/components/Setup/JellyfinSetup.tsx
@@ -113,11 +113,6 @@ function JellyfinSetup({
validationSchema={LoginSchema}
onSubmit={async (values) => {
try {
- // Check if serverType is either 'Jellyfin' or 'Emby'
- // if (serverType !== 'Jellyfin' && serverType !== 'Emby') {
- // throw new Error('Invalid serverType'); // You can customize the error message
- // }
-
await axios.post('/api/v1/auth/jellyfin', {
username: values.username,
password: values.password,
diff --git a/src/components/TitleCard/ErrorCard.tsx b/src/components/TitleCard/ErrorCard.tsx
index 54ed1c87..6c386b8c 100644
--- a/src/components/TitleCard/ErrorCard.tsx
+++ b/src/components/TitleCard/ErrorCard.tsx
@@ -21,7 +21,7 @@ const messages = defineMessages('components.TitleCard', {
cleardata: 'Clear Data',
});
-const Error = ({ id, tmdbId, tvdbId, type, canExpand }: ErrorCardProps) => {
+const ErrorCard = ({ id, tmdbId, tvdbId, type, canExpand }: ErrorCardProps) => {
const intl = useIntl();
const deleteMedia = async () => {
@@ -129,4 +129,4 @@ const Error = ({ id, tmdbId, tvdbId, type, canExpand }: ErrorCardProps) => {
);
};
-export default Error;
+export default ErrorCard;
diff --git a/src/components/TvDetails/index.tsx b/src/components/TvDetails/index.tsx
index cf85aef1..2b49f1ae 100644
--- a/src/components/TvDetails/index.tsx
+++ b/src/components/TvDetails/index.tsx
@@ -382,9 +382,7 @@ const TvDetails = ({ tv }: TvDetailsProps) => {
setIsUpdating(true);
try {
- await axios.delete('/api/v1/watchlist/' + tv?.id, {
- method: 'DELETE',
- });
+ await axios.delete('/api/v1/watchlist/' + tv?.id);
addToast(
diff --git a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx
index 44e422e9..b187a22a 100644
--- a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx
+++ b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx
@@ -11,7 +11,7 @@ import useLocale from '@app/hooks/useLocale';
import useSettings from '@app/hooks/useSettings';
import { Permission, UserType, useUser } from '@app/hooks/useUser';
import globalMessages from '@app/i18n/globalMessages';
-import Error from '@app/pages/_error';
+import ErrorPage from '@app/pages/_error';
import defineMessages from '@app/utils/defineMessages';
import { ArrowDownOnSquareIcon } from '@heroicons/react/24/outline';
import { ApiErrorCode } from '@server/constants/error';
@@ -129,7 +129,7 @@ const UserGeneralSettings = () => {
}
if (!data) {
- return ;
+ return ;
}
return (
diff --git a/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/LinkJellyfinModal.tsx b/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/LinkJellyfinModal.tsx
index cf229e16..f4c570ae 100644
--- a/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/LinkJellyfinModal.tsx
+++ b/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/LinkJellyfinModal.tsx
@@ -84,14 +84,8 @@ const LinkJellyfinModal: React.FC = ({
await axios.post(
`/api/v1/user/${user?.id}/settings/linked-accounts/jellyfin`,
{
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- },
- body: JSON.stringify({
- username,
- password,
- }),
+ username,
+ password,
}
);
onSave();
diff --git a/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/index.tsx b/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/index.tsx
index f16e1868..ae7e6342 100644
--- a/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/index.tsx
+++ b/src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/index.tsx
@@ -141,8 +141,7 @@ const UserLinkedAccountsSettings = () => {
const deleteRequest = async (account: string) => {
try {
await axios.delete(
- `/api/v1/user/${user?.id}/settings/linked-accounts/${account}`,
- { method: 'DELETE' }
+ `/api/v1/user/${user?.id}/settings/linked-accounts/${account}`
);
} catch {
setError(intl.formatMessage(messages.deleteFailed));
diff --git a/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx b/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx
index b37e3888..869b2188 100644
--- a/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx
+++ b/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx
@@ -5,7 +5,7 @@ import PageTitle from '@app/components/Common/PageTitle';
import SensitiveInput from '@app/components/Common/SensitiveInput';
import { Permission, useUser } from '@app/hooks/useUser';
import globalMessages from '@app/i18n/globalMessages';
-import Error from '@app/pages/_error';
+import ErrorPage from '@app/pages/_error';
import defineMessages from '@app/utils/defineMessages';
import { ArrowDownOnSquareIcon } from '@heroicons/react/24/outline';
import axios from 'axios';
@@ -80,7 +80,7 @@ const UserPasswordChange = () => {
}
if (!data) {
- return ;
+ return ;
}
if (
diff --git a/src/components/UserProfile/UserSettings/UserPermissions/index.tsx b/src/components/UserProfile/UserSettings/UserPermissions/index.tsx
index 0503445e..3398ae7e 100644
--- a/src/components/UserProfile/UserSettings/UserPermissions/index.tsx
+++ b/src/components/UserProfile/UserSettings/UserPermissions/index.tsx
@@ -5,7 +5,7 @@ import PageTitle from '@app/components/Common/PageTitle';
import PermissionEdit from '@app/components/PermissionEdit';
import { useUser } from '@app/hooks/useUser';
import globalMessages from '@app/i18n/globalMessages';
-import Error from '@app/pages/_error';
+import ErrorPage from '@app/pages/_error';
import defineMessages from '@app/utils/defineMessages';
import { ArrowDownOnSquareIcon } from '@heroicons/react/24/outline';
import axios from 'axios';
@@ -46,7 +46,7 @@ const UserPermissions = () => {
}
if (!data) {
- return ;
+ return ;
}
if (currentUser?.id !== 1 && currentUser?.id === user?.id) {