diff --git a/src/app/developer-tools/components/terms-of-use/terms-of-use.component.html b/src/app/developer-tools/components/terms-of-use/terms-of-use.component.html
index 895fab59eb..05f8c2867c 100644
--- a/src/app/developer-tools/components/terms-of-use/terms-of-use.component.html
+++ b/src/app/developer-tools/components/terms-of-use/terms-of-use.component.html
@@ -124,6 +124,7 @@
()
$destroy = new Subject()
emailAlreadyVerified: boolean
constructor(
private developerToolsService: DeveloperToolsService,
- private _record: RecordService
+ private _record: RecordService,
+ private _changeDetectorRef: ChangeDetectorRef
) {}
ngOnDestroy(): void {
this.$destroy.next(true)
@@ -46,6 +53,8 @@ export class TermsOfUseComponent implements OnInit, OnDestroy {
)[0]
if (primaryEmail?.verified) {
this.emailAlreadyVerified = true
+ this._changeDetectorRef.detectChanges()
+ this.firstInput?.focus()
}
})
}
diff --git a/src/app/developer-tools/pages/developer-tools/developer-tools.component.html b/src/app/developer-tools/pages/developer-tools/developer-tools.component.html
index b6c1322401..1cf04c69b1 100644
--- a/src/app/developer-tools/pages/developer-tools/developer-tools.component.html
+++ b/src/app/developer-tools/pages/developer-tools/developer-tools.component.html
@@ -11,7 +11,6 @@
Developer tools
-
{
- return {
- ...funding,
- userIsSource: this.userIsSource(funding),
- }
- })
this.setFundingsInitialStates(value)
}
get fundingStack(): FundingGroup {
@@ -54,16 +48,6 @@ export class FundingStackComponent implements OnInit {
@Input()
set userInfo(userInfo: UserInfo) {
this._userInfo = userInfo
- if (this._fundingStack.fundings) {
- this._fundingStack.fundings = this._fundingStack.fundings.map(
- (funding) => {
- return {
- ...funding,
- userIsSource: this.userIsSource(funding),
- }
- }
- )
- }
}
get userInfo(): UserInfo {
return this._userInfo
diff --git a/src/app/types/record-funding.endpoint.ts b/src/app/types/record-funding.endpoint.ts
index fed681416a..a9703e61f9 100644
--- a/src/app/types/record-funding.endpoint.ts
+++ b/src/app/types/record-funding.endpoint.ts
@@ -54,7 +54,6 @@ export interface Funding extends AssertionBase {
typeForDisplay?: string
dateSortString?: MonthDayYearDate
fullyLoaded?: boolean
- userIsSource?: boolean
}
export enum FundingTypes {