Skip to content

Commit 7cc1d0f

Browse files
Jon Tzengswansontec
authored andcommitted
Fix lint warnings in PasswordReminderService
1 parent ac770eb commit 7cc1d0f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/services/PasswordReminderService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ interface DispatchProps {
1616
type Props = StateProps & DispatchProps
1717

1818
class PasswordReminderComponent extends React.PureComponent<Props> {
19-
componentDidUpdate(prevProps: Props) {
19+
componentDidUpdate(prevProps: Props): void {
2020
if (
21-
this.props.settingsLoaded &&
21+
this.props.settingsLoaded === true &&
2222
!matchJson(prevProps.passwordReminder, this.props.passwordReminder)
2323
) {
2424
this.props
@@ -29,7 +29,7 @@ class PasswordReminderComponent extends React.PureComponent<Props> {
2929
}
3030
}
3131

32-
render() {
32+
render(): React.JSX.Element | null {
3333
return null
3434
}
3535
}

0 commit comments

Comments
 (0)