diff --git a/next.config.js b/next.config.js index 4b773621..cf7dce7f 100644 --- a/next.config.js +++ b/next.config.js @@ -60,7 +60,7 @@ const redirects = [ { source: '/settings', destination: process.env.CLOUD_MODE - ? `${process.env.CLOUD_URL}/websites` + ? `${process.env.CLOUD_URL}/settings/websites` : '/settings/websites', permanent: true, }, diff --git a/package.json b/package.json index 7a3f34c3..f2a5d9b9 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "extract-react-intl-messages": "^4.1.1", "husky": "^8.0.3", "lint-staged": "^14.0.1", - "postcss": "^8.4.21", + "postcss": "^8.4.31", "postcss-flexbugs-fixes": "^5.0.2", "postcss-import": "^15.1.0", "postcss-preset-env": "7.8.3", diff --git a/src/app/(main)/settings/users/UserWebsites.js b/src/app/(main)/settings/users/UserWebsites.js index 333ba5d1..18b5f1a7 100644 --- a/src/app/(main)/settings/users/UserWebsites.js +++ b/src/app/(main)/settings/users/UserWebsites.js @@ -22,7 +22,7 @@ export function UserWebsites({ userId }) { {hasData && ( = 0 ? units.splice(index) : []; } diff --git a/src/lib/yup.ts b/src/lib/yup.ts index 2407f7ad..5bd0aa18 100644 --- a/src/lib/yup.ts +++ b/src/lib/yup.ts @@ -2,11 +2,14 @@ import moment from 'moment'; import * as yup from 'yup'; import { UNIT_TYPES } from './constants'; -export const TimezoneTest = yup.string().test( - 'timezone', - () => `Invalid timezone`, - value => moment.tz.zone(value) !== null, -); +export const TimezoneTest = yup + .string() + .default('UTC') + .test( + 'timezone', + () => `Invalid timezone`, + value => moment.tz.zone(value) !== null, + ); export const UnitTypeTest = yup.string().test( 'unit', diff --git a/yarn.lock b/yarn.lock index 5d64e01c..b0eeb778 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7409,19 +7409,10 @@ postcss@8.4.14: picocolors "^1.0.0" source-map-js "^1.0.2" -postcss@^8.1.10: - version "8.4.24" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz" - integrity sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg== - dependencies: - nanoid "^3.3.6" - picocolors "^1.0.0" - source-map-js "^1.0.2" - -postcss@^8.4.21, postcss@^8.4.27: - version "8.4.30" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.30.tgz#0e0648d551a606ef2192a26da4cabafcc09c1aa7" - integrity sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g== +postcss@^8.1.10, postcss@^8.4.21, postcss@^8.4.27, postcss@^8.4.31: + version "8.4.31" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d" + integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ== dependencies: nanoid "^3.3.6" picocolors "^1.0.0"