Skip to content
Snippets Groups Projects
Commit 25583a47 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

Merge branch 'ui' into 'main'

website fix

See merge request !55
parents 9368ba29 572e0fdb
No related branches found
No related tags found
1 merge request!55website fix
Pipeline #40213 passed
......@@ -7,8 +7,8 @@ import { Card } from "@/components/ui/card"
import { UserNotFound } from "@/components/user-not-found"
import getURL from "@/lib/utils"
// export const dynamic = 'force-dynamic'
// export const fetchCache = 'force-no-store'
export const dynamic = 'force-dynamic'
export const fetchCache = 'force-no-store'
export default async function ProfileLayout({
params,
......
......@@ -72,8 +72,10 @@ export const EditProfileModal = ({ user }: { user: IUser }) => {
async function onSave(formData: z.infer<typeof FormSchema>) {
if (!user) return null
if (formData.website && (!formData.website.startsWith("http://") || !formData.website.startsWith("https://"))) {
formData.website = `http://${formData.website}`
if (formData.website) {
if (!formData.website.startsWith("http")) {
formData.website = `http://${formData.website}`
}
}
const dirty = form.formState.dirtyFields
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment