aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/Searches.jsx8
-rw-r--r--src/web/src/components/System/Options/EditModal.jsx4
-rw-r--r--src/web/src/components/Users/User.jsx3
3 files changed, 10 insertions, 5 deletions
diff --git a/src/web/src/components/Search/Searches.jsx b/src/web/src/components/Search/Searches.jsx
index 3271bbe0..9306867c 100644
--- a/src/web/src/components/Search/Searches.jsx
+++ b/src/web/src/components/Search/Searches.jsx
@@ -145,9 +145,11 @@ const Searches = ({ server } = {}) => {
});
setRemoving(false);
- } catch (error) {
- console.error(error);
- toast.error(error?.response?.data ?? error?.message ?? error);
+ } catch (removeError) {
+ console.error(removeError);
+ toast.error(
+ removeError?.response?.data ?? removeError?.message ?? removeError,
+ );
setRemoving(false);
}
};
diff --git a/src/web/src/components/System/Options/EditModal.jsx b/src/web/src/components/System/Options/EditModal.jsx
index 79fa4332..0727b83e 100644
--- a/src/web/src/components/System/Options/EditModal.jsx
+++ b/src/web/src/components/System/Options/EditModal.jsx
@@ -59,7 +59,9 @@ const EditModal = ({ onClose, open, theme }) => {
await updateYaml({ yaml: newYaml });
onClose();
} catch (nextUpdateError) {
- setUpdateError(nextUpdateError?.response?.data ?? nextUpdateError?.message);
+ setUpdateError(
+ nextUpdateError?.response?.data ?? nextUpdateError?.message,
+ );
}
}
};
diff --git a/src/web/src/components/Users/User.jsx b/src/web/src/components/Users/User.jsx
index 4972b0d1..457c095b 100644
--- a/src/web/src/components/Users/User.jsx
+++ b/src/web/src/components/Users/User.jsx
@@ -58,7 +58,8 @@ const User = ({
{username}
</Item.Header>
<Item.Meta>
- Free Upload Slot: <FreeUploadSlot hasFreeUploadSlot={hasFreeUploadSlot} />, Total Upload
+ Free Upload Slot:{' '}
+ <FreeUploadSlot hasFreeUploadSlot={hasFreeUploadSlot} />, Total Upload
Slots: {uploadSlots}, Queue Length: {queueLength}, IP Address: {address}
, Port: {port}
</Item.Meta>