main
ULTRACOMBOS-DEV 2 months ago
parent bcb4dae363
commit 523afa74bc
  1. 2
      vite/src/pages/flow_free.jsx
  2. 28
      vite/src/util/useUser.jsx

@ -204,7 +204,7 @@ export function FreeFlow(){
let fadeOutInterval = setInterval(() => { let fadeOutInterval = setInterval(() => {
if (refAudio.current.volume > dest) { if (refAudio.current.volume > dest) {
refAudio.current.volume =Math.max(dest, refAudio.current.volume - (1.0-dest)/(AUDIO_FADE_TIME/100)); // Decrease volume gradually refAudio.current.volume =Math.max(dest, refAudio.current.volume - (1.0-dest)/(AUDIO_FADE_TIME/100)); // Decrease volume gradually
console.log('Fading out audio volume:', refAudio.current.volume); //console.log('Fading out audio volume:', refAudio.current.volume);
} else { } else {
clearInterval(fadeOutInterval); clearInterval(fadeOutInterval);
} }

@ -63,13 +63,13 @@ export function UserProvider({children}) {
const data={ const data={
history, history,
} }
updateUser('user/'+getDataId(), data) // updateUser('user/'+getDataId(), data)
.then(() => { // .then(() => {
console.log("History saved successfully"); // console.log("History saved successfully");
}) // })
.catch((error) => { // .catch((error) => {
console.error("Error saving history:", error); // console.error("Error saving history:", error);
}); // });
} }
function writeSheet(){ function writeSheet(){
@ -104,13 +104,13 @@ export function UserProvider({children}) {
console.log("Updating user data:", data); console.log("Updating user data:", data);
updateUser('user/'+getDataId(), data) // updateUser('user/'+getDataId(), data)
.then(() => { // .then(() => {
console.log("User data updated successfully"); // console.log("User data updated successfully");
}) // })
.catch((error) => { // .catch((error) => {
console.error("Error updating user data:", error); // console.error("Error updating user data:", error);
}); // });
},[choice, summary, refPassword.current]); },[choice, summary, refPassword.current]);

Loading…
Cancel
Save