@designcrowd/fe-shared-lib 1.0.8-ml-82-4 → 1.0.8-ml-82-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.0.8-ml-82-4",
3
+ "version": "1.0.8-ml-82-5",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -11,16 +11,16 @@
11
11
  </a>
12
12
  </span>
13
13
  <span v-if="isPartnerTheme"> and BrandCrowd's </span>
14
- <span v-else>{{ termsAndConditions.byProceeding ?? 'By proceeding you accept our' }}</span>
14
+ <span v-else>{{ termsAndConditions.byProceeding ?? 'By proceeding you accept our' }} </span>
15
15
  <a :href="termsOfUseUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
16
- >{{ termsAndConditions.termsOfUse ?? 'Terms of Use' }}</a
16
+ >{{ termsAndConditions.termsOfUse ?? 'Terms of Use' }} </a
17
17
  >
18
- {{ termsAndConditions.and ?? and }}
18
+ {{ termsAndConditions.and ?? 'and' }}
19
19
  <a :href="privacyPolicyUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
20
- >{{ termsAndConditions.privacyPolicy ?? 'Privacy Policy' }}</a
20
+ >{{ termsAndConditions.privacyPolicy ?? 'Privacy Policy' }} </a
21
21
  >
22
22
  <span>
23
- {{ termsAndConditions.agreeToFutureUpdates ?? 'and agree to receive future updates from' }}{{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span
23
+ {{ termsAndConditions.agreeToFutureUpdates ?? 'and agree to receive future updates from' }} {{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span
24
24
  >
25
25
  </p>
26
26
  </template>
@@ -220,6 +220,10 @@ export default {
220
220
  },
221
221
  computed: {
222
222
  getRedirectToSignInUrl() {
223
+ if (typeof window === 'undefined') {
224
+ return null;
225
+ }
226
+
223
227
  const url = new URL(`https://${window.location.host}${this.signInUrl}`);
224
228
  if (this.aUserName) {
225
229
  url.searchParams.append('initialUserName', this.aUserName);