Skip to content

Commit 8b96c1f

Browse files
fix: github user url
1 parent 38dea66 commit 8b96c1f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pages/contributors.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::components::{cards::contributor_card::ContributorCard, footer::Footer
77
pub struct Contributor {
88
login: String,
99
avatar_url: String,
10-
url: String,
10+
html_url: String,
1111
}
1212

1313
async fn fetch_contributors() -> Result<Vec<Contributor>> {
@@ -19,8 +19,7 @@ async fn fetch_contributors() -> Result<Vec<Contributor>> {
1919
.json::<Vec<Contributor>>()
2020
.await?
2121
.into_iter()
22-
.map(|item| item)
23-
.collect::<Vec<_>>();
22+
.collect();
2423
Ok(response)
2524
}
2625

@@ -38,7 +37,7 @@ pub fn Contributors() -> impl IntoView {
3837
<ContributorCard
3938
name=item.login.clone()
4039
description=""
41-
link=item.url.clone()
40+
link=item.html_url.clone()
4241
brand_src=item.avatar_url.clone()
4342
/>
4443
}

0 commit comments

Comments
 (0)