Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Jan 16, 2025
1 parent 3d5ae0a commit 2d2427e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/common/components/ErrorHandler.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Snackbar, Alert, Button, Link, Dialog, DialogContent, DialogContentText, DialogActions, Typography } from '@mui/material';
import {
Snackbar, Alert, Button, Link, Dialog, DialogContent, DialogContentText, DialogActions, Typography,
} from '@mui/material';
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { usePrevious } from '../../reactHelper';
Expand Down Expand Up @@ -27,7 +29,13 @@ const ErrorHandler = () => {
severity="error"
variant="filled"
>
{displayMessage} | <Link color="inherit" href="#" onClick={() => setExpanded(true)}>{t('sharedShowDetails')}</Link>
{displayMessage}
{multiline && (
<>
{' | '}
<Link color="inherit" href="#" onClick={() => setExpanded(true)}>{t('sharedShowDetails')}</Link>
</>
)}
</Alert>
</Snackbar>
<Dialog
Expand Down

0 comments on commit 2d2427e

Please sign in to comment.