Skip to content

Commit

Permalink
Merge branch 'develop' into fix/handle-missing-resource
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage authored Sep 2, 2024
2 parents 12c16a5 + 2536773 commit 10a8ab3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const CampaignGeneralSection = ({
</Text>

<Text size="small" leading="compact">
{campaign.starts_at ? formatDate(campaign.ends_at) : "-"}
{campaign.ends_at ? formatDate(campaign.ends_at) : "-"}
</Text>
</div>
</Container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
} from "../../../../../hooks/api/invites"
import { useUserInviteTableQuery } from "../../../../../hooks/table/query/use-user-invite-table-query"
import { useDataTable } from "../../../../../hooks/use-data-table"
import { backendUrl } from "../../../../../lib/client"
import { isFetchError } from "../../../../../lib/is-fetch-error.ts"

const InviteUserSchema = zod.object({
Expand All @@ -40,6 +39,8 @@ const InviteUserSchema = zod.object({

const PAGE_SIZE = 10
const PREFIX = "usr_invite"
const INVITE_URL = `${window.location.origin}${__BASE__ === "/" ? "" : __BASE__}/invite?token=`


export const InviteUserForm = () => {
const { t } = useTranslation()
Expand Down Expand Up @@ -206,7 +207,7 @@ const InviteActions = ({ invite }: { invite: InviteDTO }) => {
}

const handleCopyInviteLink = () => {
const inviteUrl = `${backendUrl}/app/invite?token=${invite.token}`
const inviteUrl = `${INVITE_URL}${invite.token}`
copy(inviteUrl)
}

Expand Down

0 comments on commit 10a8ab3

Please sign in to comment.