Skip to content

Commit 5810ddd

Browse files
committed
PROD-4239, PROD-4240 - fix spinning overlay, merge solution for blank page
1 parent bfb3c2f commit 5810ddd

File tree

12 files changed

+37
-11
lines changed

12 files changed

+37
-11
lines changed

.environments/.env.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ REACT_APP_DATADOG_PUBLIC_TOKEN=puba0825671e469d16f940c5a30dc738f11
1717

1818
REACT_APP_MEMBER_VERIFY_LOOKER=3322
1919

20-
REACT_APP_SPRIG_ENV_ID=dev
20+
REACT_APP_SPRIG_ENV_ID=bUcousVQ0-yF
2121

2222
# Filestack configuration for uploading Submissions
2323
REACT_APP_FILESTACK_API_KEY='AzFINuQoqTmqw0QEoaw9az'

src/apps/self-service/src/containers/legacy/BasicInfoLegacy/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const BasicInfoLegacy = ({
160160

161161
return (
162162
<>
163-
<LoadingSpinner hide={!isLoading} />
163+
<LoadingSpinner hide={!isLoading} overlay />
164164
<ContactSupportModal
165165
workId={challenge?.id}
166166
isOpen={showSupportModal}

src/apps/self-service/src/containers/legacy/BrandingLegacy/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const BrandingLegacy = ({ saveBranding, setProgressItem, isLoggedIn }) => {
123123

124124
return (
125125
<>
126-
<LoadingSpinner hide={initialized} />
126+
<LoadingSpinner hide={initialized} overlay />
127127
<Breadcrumb items={breadcrumbs} />
128128
<WebsiteDesignBannerLegacy />
129129
<PageContent>

src/apps/self-service/src/containers/legacy/PageDetailsLegacy/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const PageDetailsLegacy = ({ savePageDetails, setProgressItem, isLoggedIn }) =>
9696

9797
return (
9898
<>
99-
<LoadingSpinner hide={!isLoading} />
99+
<LoadingSpinner hide={!isLoading} overlay />
100100
<Breadcrumb items={breadcrumbs} />
101101
<WebsiteDesignBannerLegacy />
102102
<PageContent>

src/apps/self-service/src/containers/legacy/ReviewLegacy/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const ReviewLegacy = ({
197197
isOpen={isOrderContractModalOpen}
198198
onClose={() => setIsOrderContractModalOpen(false)}
199199
/>
200-
<LoadingSpinner hide={!isLoading} />
200+
<LoadingSpinner hide={!isLoading} overlay />
201201
<Breadcrumb items={breadcrumbs} />
202202
{banner}
203203
<PageContent styleName={"container"}>

src/apps/self-service/src/containers/legacy/WebsitePurposeLegacy/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const WebsitePurposeLegacy = ({ saveWebsitePurpose, setProgressItem, isLoggedIn
9494

9595
return (
9696
<>
97-
<LoadingSpinner hide={!isLoading} />
97+
<LoadingSpinner hide={!isLoading} overlay />
9898
<Breadcrumb items={breadcrumbs} />
9999
<WebsiteDesignBannerLegacy />
100100
<PageContent>

src/apps/self-service/src/containers/products/basic-info/BasicInfo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const BasicInfo = ({
226226

227227
return (
228228
<>
229-
<LoadingSpinner hide={!isLoading} />
229+
<LoadingSpinner hide={!isLoading} overlay />
230230
<ContactSupportModal
231231
challengeId={challenge?.id}
232232
isOpen={showSupportModal}

src/apps/self-service/src/containers/products/review/Review.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const Review = ({
203203
isOpen={isOrderContractModalOpen}
204204
onClose={() => setIsOrderContractModalOpen(false)}
205205
/>
206-
<LoadingSpinner hide={!isLoading} />
206+
<LoadingSpinner hide={!isLoading} overlay />
207207
<Breadcrumb
208208
items={breadcrumb.map((item) => ({
209209
...item,

src/apps/self-service/src/containers/select-work-type/SelectWorkType.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const SelectWorkType = ({
157157

158158
return (
159159
<>
160-
<LoadingSpinner hide={!isLoading} />
160+
<LoadingSpinner hide={!isLoading} overlay />
161161
<ContactSupportModal
162162
workId={challenge?.id}
163163
isOpen={showSupportModal}

src/apps/self-service/src/lib/work-provider/work-functions/work-factory/work.factory.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,13 @@ function getType(challenge: Challenge): WorkType {
715715
}
716716

717717
// parse the form
718-
const form: { form: IntakeForm } = JSON.parse(intakeForm.value)
718+
const form: { form: IntakeForm } = (() => {
719+
try {
720+
return JSON.parse(intakeForm.value)
721+
} catch {
722+
return {form: undefined}
723+
}
724+
})()
719725
const workTypeKey: (keyof typeof WorkType) | undefined = Object.entries(WorkType)
720726
.find(([, value]) => value === form.form?.workType?.selectedWorkType)
721727
?.[0] as keyof typeof WorkType

0 commit comments

Comments
 (0)