Skip to content

Commit

Permalink
fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
BaoXuebin committed Oct 15, 2022
1 parent ab07af3 commit c042994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/base/PageWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Config from '../../config/Config';
import { fetch } from '../../config/Util';
import ThemeContext from '../../context/ThemeContext';
import './styles/PageWrapper.css';
import { WarningOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
import { WarningOutlined } from '@ant-design/icons';
import { Modal } from 'antd';

class PageWrapper extends Component {
Expand All @@ -21,7 +21,7 @@ class PageWrapper extends Component {
this.setState({ version })
})
fetch('/api/auth/ledger/check').then((data) => {
this.setState({ error: data })
this.setState({ error: data || [] })
})
}

Expand Down

0 comments on commit c042994

Please sign in to comment.