Skip to content

Commit

Permalink
fix(ui): fix mistake in last pr (#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie authored May 28, 2024
1 parent b49c73d commit bf27882
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ async fn home_info() -> Result<HomeInfo, String> {
.map_err(|e| e.to_string())?;


let session_path = settings.session_path.as_str();
let last_sync = Settings::last_sync()
.map_err(|e| e.to_string())?
.format(&Rfc3339)
Expand All @@ -101,7 +100,7 @@ async fn home_info() -> Result<HomeInfo, String> {
.await
.map_err(|e| e.to_string())?;

let info = if settings.logged_in() {
let info = if !settings.logged_in() {
HomeInfo {
username: None,
last_sync: None,
Expand Down

0 comments on commit bf27882

Please sign in to comment.