mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
fix lint errors
This commit is contained in:
@@ -79,7 +79,7 @@ const SecuritySettings = () => {
|
||||
onChange={updateFormValue}
|
||||
margin="normal"
|
||||
/>
|
||||
<MessageBox level="info" message={LL.SU_TEXT()} mt={1} />
|
||||
<MessageBox level="info" message={LL.SU_TEXT()} sx={{ mt: 1 }} />
|
||||
{dirtyFlags && dirtyFlags.length !== 0 && (
|
||||
<ButtonRow>
|
||||
<Button
|
||||
|
||||
@@ -91,8 +91,10 @@ const DragNdrop = ({ text, onFileSelected }: DragNdropProps) => {
|
||||
).upgradeImportantMessageType;
|
||||
setUpgradeImportantMessageType(upgradeImportantMessageType_n);
|
||||
if (upgradeImportantMessageType_n === 0) {
|
||||
if (file) {
|
||||
onFileSelected(file);
|
||||
}
|
||||
}
|
||||
})
|
||||
.onError((error) => {
|
||||
toast.error(String(error.error?.message || 'An error occurred'));
|
||||
|
||||
Reference in New Issue
Block a user