From 703626e5840a21a413cd30131a79300c22dd2c2a Mon Sep 17 00:00:00 2001
From: HAUTBOIS Aurelie <aurelie.hautbois@ext.soprasteria.com>
Date: Wed, 20 Jan 2021 17:40:09 +0100
Subject: [PATCH] update challenge

---
 docs/ecolyo/functionalities/challenge.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docs/ecolyo/functionalities/challenge.md b/docs/ecolyo/functionalities/challenge.md
index 5dab823..e2b490a 100644
--- a/docs/ecolyo/functionalities/challenge.md
+++ b/docs/ecolyo/functionalities/challenge.md
@@ -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
-- 
GitLab