user companies list hotfix

This commit is contained in:
merelendor 2022-09-06 16:33:54 +03:00
parent 4c2e84ede1
commit 5f1c3065b4
2 changed files with 5 additions and 5 deletions

View File

@ -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('/');
})

View File

@ -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>