user companies list hotfix
This commit is contained in:
parent
4c2e84ede1
commit
5f1c3065b4
@ -43,7 +43,8 @@ export const sendLoginFormEmail = ({ email, password, dispatch }) =>
|
||||
.then(() =>
|
||||
{
|
||||
dispatch({ type: actionTypes.AUTH, data: { logged: true } });
|
||||
dispatch({ type: actionTypes.USER, data: response.data.user });
|
||||
dispatch({ type: actionTypes.USER, data: response.data.user });
|
||||
dispatch({ type: actionTypes.COMPANIES, data: { list: response.data.companies } });
|
||||
|
||||
resolve();
|
||||
Router.push('/');
|
||||
@ -189,10 +190,9 @@ export const sendOffstageToken = ({ token, dispatch }) =>
|
||||
.then(() =>
|
||||
{
|
||||
dispatch({ type: actionTypes.AUTH, data: { logged: true, observer: true } });
|
||||
dispatch({ type: actionTypes.USER, data: response.data.user });
|
||||
dispatch({ type: actionTypes.COMPANIES, data: { list: response.data.companies } });
|
||||
dispatch({ type: actionTypes.USER, data: response.data.user });
|
||||
dispatch({ type: actionTypes.COMPANIES, data: { list: response.data.companies } });
|
||||
|
||||
|
||||
resolve();
|
||||
Router.push('/');
|
||||
})
|
||||
|
||||
@ -54,7 +54,7 @@ export default class InnerMenu extends React.Component
|
||||
</li>
|
||||
<li>
|
||||
<Link href={`/events#finance`} shallow>
|
||||
<a className={ type === "finance" ? "active" : "" }>Банки и договоры</a>
|
||||
<a className={ type === "finance" ? "active" : "" }>Договоры</a>
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user