From 36f7f763729398636a7fa8fb3df32f96bdfab68a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 22 May 2021 04:35:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Fix=20debug=20messages=20languag?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nest_frontend/hooks/useArrayState.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nest_frontend/hooks/useArrayState.js b/nest_frontend/hooks/useArrayState.js index 9a8225c..5aeda3d 100644 --- a/nest_frontend/hooks/useArrayState.js +++ b/nest_frontend/hooks/useArrayState.js @@ -2,7 +2,7 @@ import { useCallback, useState } from "react" /** - * An hook similar to {@link useState} which stores an array of values. + * An hook similar to {@link useState} which stores an array instead of a single value. * * @param def - The starting value of the hook. * @returns {{spliceValue, removeValue, setValue, appendValue, value}} @@ -12,7 +12,7 @@ export default function useArrayState(def) { const appendValue = useCallback( newSingle => { - console.debug("Aggiungendo ", newSingle, " ad ArrayState") + console.debug("Adding ", newSingle, " to ArrayState") setValue( oldArray => [...oldArray, newSingle], ) @@ -22,7 +22,7 @@ export default function useArrayState(def) { const spliceValue = useCallback( position => { - console.debug("Estraendo ", position, " da ArrayState") + console.debug("Splicing ", position, " from ArrayState") setValue( oldArray => { oldArray.splice(position, 1)