diff --git a/src/routes/(app)/website/+page.server.js b/src/routes/(app)/website/+page.server.js index fbe45cd..9b792fd 100644 --- a/src/routes/(app)/website/+page.server.js +++ b/src/routes/(app)/website/+page.server.js @@ -10,11 +10,10 @@ export const load = async ({ fetch }) => { }); const { site } = await blogRes.json(); - site.primary_color_hex = "#" + site.primary_color_hex - site.secondary_color_hex = "#" + site.secondary_color_hex - site.text_color_hex = "#" + site.text_color_hex + // site.primary_color_hex = "#" + site.primary_color_hex + // site.secondary_color_hex = "#" + site.secondary_color_hex + // site.text_color_hex = "#" + site.text_color_hex - // console.log("getting back", site) return { blog_info: site, form: await superValidate(site, zod(schema)) @@ -32,9 +31,9 @@ export const actions = { } let data = structuredClone(form.data); - data.primary_color_hex = data.primary_color_hex.slice(1); - data.secondary_color_hex = data.secondary_color_hex.slice(1); - data.text_color_hex = data.text_color_hex.slice(1); + // data.primary_color_hex = data.primary_color_hex.slice(1); + // data.secondary_color_hex = data.secondary_color_hex.slice(1); + // data.text_color_hex = data.text_color_hex.slice(1); const res = await event.fetch(config.api_url + "/dashboard/website", { method: "PUT", diff --git a/src/routes/(app)/website/+page.svelte b/src/routes/(app)/website/+page.svelte index 5d39b05..6588038 100644 --- a/src/routes/(app)/website/+page.svelte +++ b/src/routes/(app)/website/+page.svelte @@ -83,20 +83,14 @@