forked from React-Group/interstellar_ai
const fixes
This commit is contained in:
parent
9ee165c5c5
commit
b951fa4d4f
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue