Refractoring: Removed unnecessary imports

This commit is contained in:
Leoh 2021-10-19 19:10:14 +05:30
parent 0cd5fde19c
commit 0280d5bd3a

View file

@ -3,8 +3,6 @@ import { getStats, scoreTask } from "./habiticaAPI"
import Statsview from "./Components/Statsview" import Statsview from "./Components/Statsview"
import Taskview from "./Components/Taskview" import Taskview from "./Components/Taskview"
import { domainToASCII } from "url";
let username = "" let username = ""
let credentials = "" let credentials = ""
@ -44,10 +42,7 @@ class App extends React.Component<any,any> {
result => { result => {
if(result.success === false){ if(result.success === false){
this.sendNotice("Login Failed, Please check credentials and try again!") this.sendNotice("Login Failed, Please check credentials and try again!")
console.log(result)
} else { } else {
console.log(result)
console.log("data reloaded")
this.setState({ this.setState({
isLoaded: true, isLoaded: true,
user_data: result, user_data: result,