diff --git a/src/main.rs b/src/main.rs index be14efb..0dd66bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,7 +152,7 @@ async fn sync_immediate(
"Done syncing! Future updates to your lists will happen automatically."
), SyncImmediateResult::Error { value } => html!( -{ text!("Error: {}", value) }
+{text!("Error: {}", value)}
), SyncImmediateResult::Pending => html!("Sync ongoing."
@@ -318,20 +318,20 @@ async fn account( - - + + - {if account.failure_count > 0 { html!( + {Some(html!({text!("We have encountered {} fatal errors when trying to sync. After 10 attempted sync attempts, we will stop synchronizing.", account.failure_count)}
- ) } else { html!() }} + )).filter(|_| account.failure_count > 0)} - {if let Some(err) = account.last_error { html!( + {account.last_error.map(|err| html!(
"The last error we encountered was: "
{text!("{}", err)}