Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Nov 15, 2024
1 parent f52fa97 commit 42d24f9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/pages/campaigns/questItem/refQuest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function BasicQuest({
checkQuestHandler: () => void
}) {
const { t } = useTranslation()
const { locale, pathname } = useRouter()
const { locale } = useRouter()
const { account } = useContext(Context)
const { setMigrateWalletOpen, setWalletConnectOpen } = useContext(ModalContext)
const config = getConfig()
Expand Down Expand Up @@ -96,7 +96,9 @@ export default function BasicQuest({
return (
<Link
className='w-full grid place-items-center'
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(location.origin + pathname)}`}>
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(
location.origin + location.pathname
)}`}>
<Button className='w-full' size='sm'>
<div className='w-full flex items-center gap-1'>
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'>
Expand Down Expand Up @@ -135,7 +137,9 @@ export default function BasicQuest({
return (
<Link
className='w-full grid place-items-center'
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(location.origin + pathname)}`}>
href={`${config.REST_API_URL}/twitter/connect/${encodeURIComponent(
location.origin + location.pathname
)}`}>
<Button className='w-full' size='sm'>
<div className='w-full flex items-center gap-1'>
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'>
Expand Down Expand Up @@ -173,7 +177,9 @@ export default function BasicQuest({
return (
<Link
className='w-full grid place-items-center'
href={`${config.REST_API_URL}/discord/connect/${encodeURIComponent(location.origin + pathname)}`}>
href={`${config.REST_API_URL}/discord/connect/${encodeURIComponent(
location.origin + location.pathname
)}`}>
<Button className='w-full' size='sm'>
<div className='w-full flex items-center gap-1'>
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'>
Expand Down

0 comments on commit 42d24f9

Please sign in to comment.