Compare commits

..

No commits in common. "ae99b8eeb7cf64a18b626f89534dfd0b406b3717" and "8552147f69855d6415dd8965124fdcb9f4592f33" have entirely different histories.

View file

@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
import {
createAccount,
checkCredentials,
getData
} from '../backend/database';
import Settings from './settings/Settings'; // Import the Settings component
@ -55,10 +54,6 @@ const Login: React.FC = () => {
const success = await checkCredentials(accountName, password);
if (success) {
setIsLoggedIn(true); // Successful login
var data = await getData(accountName, password)
if (data) {
localStorage.setItem("dataFromServer", data)
}
setShowLoginPopup(false); // Close the login popup
} else {
alert('Incorrect credentials');