main #56

Merged
YasinOnm08 merged 8 commits from React-Group/interstellar_ai:main into main 2024-10-09 14:02:13 +02:00
Showing only changes of commit b951fa4d4f - Show all commits

View file

@ -40,10 +40,10 @@ export function importSettings(jsonData: string): void {
}
export const sendToDatabase = async () => {
let useName = localStorage.getItem("accountName")
let usePassword = localStorage.getItem("accountPassword")
const useName = localStorage.getItem("accountName")
const usePassword = localStorage.getItem("accountPassword")
if (useName && usePassword) {
let result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
if (result == true) {
alert('Data has been transferred')
window.location.reload();