Clippy
This commit is contained in:
@@ -58,14 +58,11 @@ pub fn artist_page(props: &Props) -> Html {
|
||||
|
||||
// Phase 2: if not enriched, fetch full data in background
|
||||
if needs_enrich && !user_acted.get() {
|
||||
match api::get_artist_full(&id).await {
|
||||
Ok(full) => {
|
||||
// Only apply if user hasn't triggered a refresh
|
||||
if !user_acted.get() {
|
||||
detail.set(Some(full));
|
||||
}
|
||||
if let Ok(full) = api::get_artist_full(&id).await {
|
||||
// Only apply if user hasn't triggered a refresh
|
||||
if !user_acted.get() {
|
||||
detail.set(Some(full));
|
||||
}
|
||||
Err(_) => {} // quick data is still showing, don't overwrite with error
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -326,8 +323,7 @@ pub fn artist_page(props: &Props) -> Html {
|
||||
<td>
|
||||
if tc > 0 {
|
||||
<span class="text-sm" style={
|
||||
if album.watched_tracks >= tc { "color: var(--accent);" }
|
||||
else if album.watched_tracks > 0 { "color: var(--accent);" }
|
||||
if album.watched_tracks > 0 { "color: var(--accent);" }
|
||||
else { "color: var(--text-muted);" }
|
||||
}>
|
||||
{ format!("{}/{}", album.watched_tracks, tc) }
|
||||
|
||||
Reference in New Issue
Block a user