Skip to content

Commit c649135

Browse files
committed
fix: update DiscordWidget to comment out member count display and adjust structure
fix: cast signApi response to any in useServerFile hook for type safety
1 parent 947d431 commit c649135

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/widgets/DiscordWidget.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ const DiscordWidget = () => {
3737
<>
3838
<div className="text-sm text-forground-muted flex gap-2">
3939
<p className="font-semibold">মোট সদস্য</p>
40-
<p>{data?.approximate_member_count}</p>
40+
{/* <p>{data?.approximate_member_count}</p> */}
4141
</div>
4242

43-
<div className="text-sm text-forground-muted flex gap-2">
43+
{/* <div className="text-sm text-forground-muted flex gap-2">
4444
<p className="font-semibold">অনলাইনে আছেন</p>
4545
<p>{data?.approximate_presence_count}</p>
46-
</div>
46+
</div> */}
4747
</>
4848
)}
4949
</div>

src/hooks/use-file-upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const useServerFile = () => {
2727
method: "POST",
2828
body: JSON.stringify({ keys }),
2929
});
30-
const signResponse = await signApi.json();
30+
const signResponse = (await signApi.json()) as any;
3131

3232
const putResponses = await Promise.all(
3333
signResponse.data.signedUrls.map((signedUrl: string, index: number) =>

0 commit comments

Comments
 (0)