From 46c871c3cfbf3fa8c355bec3c208f9c5685bb75c Mon Sep 17 00:00:00 2001
From: 0xsysr3ll <0xsysr3ll@pm.me>
Date: Thu, 24 Apr 2025 19:23:56 +0200
Subject: [PATCH] fix(PlexPinEntry): remove duplicate error display
---
src/components/Login/PlexPinEntry.tsx | 25 +------------------------
1 file changed, 1 insertion(+), 24 deletions(-)
diff --git a/src/components/Login/PlexPinEntry.tsx b/src/components/Login/PlexPinEntry.tsx
index 57ac08ca..7bd9863d 100644
--- a/src/components/Login/PlexPinEntry.tsx
+++ b/src/components/Login/PlexPinEntry.tsx
@@ -1,7 +1,7 @@
import Button from '@app/components/Common/Button';
import defineMessages from '@app/utils/defineMessages';
import { ApiErrorCode } from '@server/constants/error';
-import { useEffect, useState } from 'react';
+import { useState } from 'react';
import { useIntl } from 'react-intl';
const messages = defineMessages('components.Login.PlexPinEntry', {
@@ -26,26 +26,15 @@ const PlexPinEntry = ({
profileName,
onSubmit,
onCancel,
- error: externalError,
}: PlexPinEntryProps) => {
const intl = useIntl();
const [pin, setPin] = useState('');
const [isSubmitting, setIsSubmitting] = useState(false);
- const [internalError, setInternalError] = useState