beautification des menues de filtres

This commit is contained in:
Victor Turgeon
2022-10-29 12:41:30 -07:00
parent deee825a48
commit 47b22e4334
3 changed files with 200 additions and 105 deletions

View File

@@ -66,8 +66,7 @@ const Morceaux = (startingProducts) => {
setIsLoading(true);
const response = await fetch(url);
const json = await response.json();
if (json.length > 0)
setProducts([...json]);
setProducts([...json]);
setIsLoading(false);
}