Skip to content
Snippets Groups Projects
Commit 70b5e065 authored by Timothé Bailly-Barthez's avatar Timothé Bailly-Barthez
Browse files

Fetch promotion

parent d0508871
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,14 @@
// React.useEffect(() => {
// }, [ready, error])
React.useEffect(() => {
axios.post('/get_promotion')
.then(result => {
setPromotionMin(result.data.promotion);
setPromotionMax(result.data.promotion);
})
}, [])
React.useEffect(() => {
setReady(false);
setError(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment