Skip to content
Snippets Groups Projects
Commit 703626e5 authored by HAUTBOIS Aurelie's avatar HAUTBOIS Aurelie
Browse files

update challenge

parent 4ed55392
No related branches found
No related tags found
No related merge requests found
Pipeline #10513 failed
......@@ -47,6 +47,16 @@ They are 4 types of action :
- CONSUMPTION : He got to do something in his consumption view.
- ECOGESTURE : He need to have a look to a specific Ecogesture.
In order to check if an exploration (which is not declarative) is done, a hook called useExploration is used.It is called on component that has to check if an exploration is done.
This hook called exploration service to check exploration by passing two parameter(the current challenge and the user exploration id associated with the exploration id of the current challenge). This check is done only if:
- There is a current challenge
- exploration.id of the current challenge is equal to the user exploration id
- exploration.state is ONGOING
Depends on the type of an exploration, either the exploration remains in progress until it is fully done or it ends.
When the user finish the exploration, he got a success message and five more stars on his challenge progression.
## Duel
......
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