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 () => {
|
export const sendToDatabase = async () => {
|
||||||
let useName = localStorage.getItem("accountName")
|
const useName = localStorage.getItem("accountName")
|
||||||
let usePassword = localStorage.getItem("accountPassword")
|
const usePassword = localStorage.getItem("accountPassword")
|
||||||
if (useName && usePassword) {
|
if (useName && usePassword) {
|
||||||
let result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
|
const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
|
||||||
if (result == true) {
|
if (result == true) {
|
||||||
alert('Data has been transferred')
|
alert('Data has been transferred')
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
|
Loading…
Reference in a new issue