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(() => {
if (refAudio.current.volume > dest) {
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 {
clearInterval(fadeOutInterval);
}

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

Loading…
Cancel
Save