fix: add to the body

feat/mobile
Arik Chakma 4 months ago
parent de54e7d8f8
commit 3eef8c7a0b
  1. 5
      src/components/PageSponsor.tsx

@ -80,11 +80,12 @@ export function PageSponsor(props: PageSponsorProps) {
const clickUrl = new URL(
`${import.meta.env.PUBLIC_API_URL}/v1-view-sponsor/${sponsorId}`,
);
clickUrl.searchParams.set('mobile', isMobile() ? 'true' : 'false');
const { response, error } = await httpPatch<{ status: 'ok' }>(
clickUrl.toString(),
{},
{
mobile: isMobile() ? true : false,
},
);
if (error || !response) {

Loading…
Cancel
Save