Small fix
This commit is contained in:
@@ -19,11 +19,8 @@ const MinePage: React.FC<HomeMineModelState & DispatchProp> = ({
|
||||
}) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!data || errorList) {
|
||||
dispatch({ type: 'homeMine/loadList', payload: false });
|
||||
}
|
||||
if (!info || errorBasic) {
|
||||
dispatch({ type: 'homeMine/loadBasic' });
|
||||
if (!data || errorList || !info || errorBasic) {
|
||||
dispatch({ type: 'homeMine/load' });
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user