Apply strictNullChecks
to src/components/auth/*
(#10484
* Apply `strictNullChecks` to `src/components/auth/*` * fix * strict types
This commit is contained in:
parent
af151700c9
commit
f152613f83
8 changed files with 25 additions and 17 deletions
|
@ -27,7 +27,7 @@ interface Props {
|
|||
|
||||
export function AuthHeaderModifier(props: Props): null {
|
||||
const context = useContext(AuthHeaderContext);
|
||||
const dispatch = context ? context.dispatch : null;
|
||||
const dispatch = context?.dispatch ?? null;
|
||||
useEffect(() => {
|
||||
if (!dispatch) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue