Skip to content

Commit

Permalink
Minor issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pokhrelashok committed Oct 28, 2024
1 parent b2db506 commit 3d49552
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/users/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function UpdateUserDialog({
</option>
{capitals
.sort((a, b) =>
parseInt(a.code) > parseInt(b.code) ? 1 : -1
parseInt(a.code) > parseInt(b.code) ? 1 : -1,
)
.map((capital) => {
return (
Expand Down Expand Up @@ -513,7 +513,7 @@ function CheckupDialog({
<div className="text-green-500 shrink-0 text-sm">
{
Object.values(result).filter(
(r) => r === "No issues found"
(r) => r === "No issues found",
).length
}
/{users.length}
Expand Down Expand Up @@ -542,14 +542,14 @@ function CheckupDialog({
className={`flex justify-between ${
user.id in result
? ["No issues found", "Password Updated"].includes(
result[user.id]
result[user.id],
)
? "bg-green-100 hover:bg-green-200"
: "bg-red-100 hover:bg-red-200"
: ""
}`}
>
<div>{user.name}</div>
<div className="text-left">{user.name}</div>
<div>
{result[user.id] || (
<LoadingSpinner className="h-3 w-3" />
Expand Down
8 changes: 4 additions & 4 deletions meroshare/src/utils/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub async fn make_request(
headers: Option<HashMap<String, String>>,
) -> Result<Response, Error> {
let client = Client::builder().build()?;
println!("{:?}", method);
// println!("{:?}", method);
let mut request_builder = client.request(method, url);
let mut headers_map = HeaderMap::new();
headers_map.insert(
Expand Down Expand Up @@ -55,9 +55,9 @@ pub async fn make_request(
);
}
}
println!("{:?}", headers_map);
println!("{:?}", url);
println!("{:?}", body);
// println!("{:?}", headers_map);
// println!("{:?}", url);
// println!("{:?}", body);
request_builder = request_builder.headers(headers_map);

if let Some(body) = body {
Expand Down

0 comments on commit 3d49552

Please # to comment.