Commit a2a17702 authored by Emily Jensen's avatar Emily Jensen

Changes backup code from string | null to string

parent e7590561
......@@ -141,7 +141,7 @@ export class BackupCodePdfService {
});
}
download(code: any) {
download(code: string) {
// Places elements on Y access
const logoYAxis = 0.5,
mainHeaderYAxis = 2.1,
......
......@@ -25,7 +25,7 @@ export class ManageBackupCodeContainer {
hasStarted$ = this.store.pipe(select(fromAccount.manageBackupCodeHasStarted));
hasFinished$ = this.store.pipe(select(fromAccount.manageBackupCodeHasFinished));
errorMessage$ = this.store.select(fromAccount.manageBackupCodeErrorMessage);
backupCode: string | null;
backupCode: string;
constructor(
private store: Store<any>,
......
......@@ -21,7 +21,7 @@ export interface IForm {
export interface IState extends IBaseFormState {
form: FormGroupState<IForm>;
errorMessage: string | null;
newBackupCode: string | null;
newBackupCode: string;
}
const validateAndUpdateFormState = updateGroup<IForm>({
......@@ -41,7 +41,7 @@ const initialState: IState = {
form: initialFormState,
hasFinished: false,
hasStarted: false,
newBackupCode: null,
newBackupCode: "",
errorMessage: null
};
......@@ -63,7 +63,7 @@ export function reducer(
hasStarted: true,
hasFinished: false,
errorMessage: null,
newBackupCode: null
newBackupCode: ""
};
case ManageBackupCodeActionTypes.SUBMIT_FORM_SUCCESS:
......@@ -81,7 +81,7 @@ export function reducer(
errorMessage: "An error occured",
hasFinished: false,
hasStarted: false,
newBackupCode: null
newBackupCode: ""
};
case ManageBackupCodeActionTypes.RESET_FORM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment