Conform more code to strictNullChecks
(#10374)
* Apply `strictNullChecks` to `src/components/views/room_settings/*` * Restore tsconfig.json * Conform more code to `strictNullChecks` * Iterate * Update matrix-widget-api * Conform more code to `strictNullChecks`
This commit is contained in:
parent
9c816bb720
commit
1c9ea423c9
44 changed files with 223 additions and 179 deletions
|
@ -77,7 +77,7 @@ export default class VerificationRequestToast extends React.PureComponent<IProps
|
|||
const device = await cli.getDevice(request.channel.deviceId);
|
||||
const ip = device.last_seen_ip;
|
||||
this.setState({
|
||||
device: cli.getStoredDevice(cli.getUserId()!, request.channel.deviceId),
|
||||
device: cli.getStoredDevice(cli.getUserId()!, request.channel.deviceId) ?? undefined,
|
||||
ip,
|
||||
});
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ export default class VerificationRequestToast extends React.PureComponent<IProps
|
|||
should_peek: false,
|
||||
metricsTrigger: "VerificationRequest",
|
||||
});
|
||||
const member = cli.getUser(request.otherUserId);
|
||||
const member = cli.getUser(request.otherUserId) ?? undefined;
|
||||
RightPanelStore.instance.setCards(
|
||||
[
|
||||
{ phase: RightPanelPhases.RoomSummary },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue