Skip to content
Snippets Groups Projects
Commit f166271a authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Fixing user retrieval

parent 44e22910
No related branches found
No related tags found
1 merge request!137Fix router bug
Pipeline #5036 failed with stage
in 1 hour
//- .container .container
//- .flex.flex_espace.flex_item_center .flex.flex_espace.flex_item_center
//- a.logo_footer(href='https://coopseurope.coop/') a.logo_footer(href='https://coopseurope.coop/')
//- figure.margin_bord_ecran figure.margin_bord_ecran
//- img(src="../images/logo_CE.png" alt="Coopstarter") img(src="../images/logo_CE.png" alt="Coopstarter")
//- a.logo_footer(href='mentor-resource-list') a.logo_footer(href='mentor-resource-list')
//- figure.margin_bord_ecran figure.margin_bord_ecran
//- img(src="../images/logo_coops4dev.jpg" alt="Coopstarter") img(src="../images/logo_coops4dev.jpg" alt="Coopstarter")
//- a.logo_footer(href='mentor-resource-list') a.logo_footer(href='mentor-resource-list')
//- figure.flex.flex_item_center figure.flex.flex_item_center
//- img.textMore(src="../images/ica_logo.png" alt="Coopstarter") img.textMore(src="../images/ica_logo.png" alt="Coopstarter")
//- div div
//- p International p International
//- p Co-operative p Co-operative
//- p Alliance p Alliance
//- a.logo_footer(href='mentor-resource-list') a.logo_footer(href='mentor-resource-list')
//- figure.flex.flex_item_center figure.flex.flex_item_center
//- img.textMore(src="../images/logo_UE.jpg" alt="Coopstarter") img.textMore(src="../images/logo_UE.jpg" alt="Coopstarter")
//- div div
//- p Co-funded p Co-funded
//- p by the p by the
//- p European Union p European Union
//- p.footer_warning.flex_item_center This software has been co-funded by the European Union. The contents of this software are the sole responsibility of Cooperatives Europe and can in no way be taken to reflect the views of the European Union. p.footer_warning.flex_item_center This software has been co-funded by the European Union. The contents of this software are the sole responsibility of Cooperatives Europe and can in no way be taken to reflect the views of the European Union.
\ No newline at end of file \ No newline at end of file
...@@ -61,7 +61,7 @@ class CoopStarterLoginComponent extends HTMLElement { ...@@ -61,7 +61,7 @@ class CoopStarterLoginComponent extends HTMLElement {
let userFromStore = await store.get(user['@id']); let userFromStore = await store.get(user['@id']);
//If the user is a mentor or an entreprenur, change user prefix //If the user is a mentor or an entreprenur, change user prefix
if(user) { if(userFromStore) {
let is_mentor = await userFromStore.mentor_profile; let is_mentor = await userFromStore.mentor_profile;
let is_entrepreneur = await userFromStore.entrepreneur_profile; let is_entrepreneur = await userFromStore.entrepreneur_profile;
if (is_mentor) { if (is_mentor) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment