summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/renderer')
-rw-r--r--gui/src/renderer/app.tsx4
-rw-r--r--gui/src/renderer/redux/account/actions.ts6
2 files changed, 5 insertions, 5 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx
index 8558b98050..ea6c12cc84 100644
--- a/gui/src/renderer/app.tsx
+++ b/gui/src/renderer/app.tsx
@@ -32,7 +32,7 @@ import {
IAccountData,
IAppVersionInfo,
IDevice,
- DeviceConfig,
+ IDeviceConfig,
IDeviceRemoval,
IDnsOptions,
ILocation,
@@ -96,7 +96,7 @@ export default class AppRenderer {
private relayListPair!: IRelayListPair;
private tunnelState!: TunnelState;
private settings!: ISettings;
- private deviceConfig: DeviceConfig;
+ private deviceConfig?: IDeviceConfig;
private guiSettings!: IGuiSettingsState;
private loginState: 'none' | 'logging in' | 'creating account' | 'too many devices' = 'none';
private loginScheduler = new Scheduler();
diff --git a/gui/src/renderer/redux/account/actions.ts b/gui/src/renderer/redux/account/actions.ts
index 355acc4a35..aa0a949533 100644
--- a/gui/src/renderer/redux/account/actions.ts
+++ b/gui/src/renderer/redux/account/actions.ts
@@ -1,4 +1,4 @@
-import { AccountToken, DeviceConfig, IDevice } from '../../../shared/daemon-rpc-types';
+import { AccountToken, IDeviceConfig, IDevice } from '../../../shared/daemon-rpc-types';
interface IStartLoginAction {
type: 'START_LOGIN';
@@ -107,7 +107,7 @@ function startLogin(accountToken: AccountToken): IStartLoginAction {
};
}
-function loggedIn(deviceConfig: NonNullable<DeviceConfig>): ILoggedInAction {
+function loggedIn(deviceConfig: IDeviceConfig): ILoggedInAction {
return {
type: 'LOGGED_IN',
accountToken: deviceConfig.accountToken,
@@ -172,7 +172,7 @@ function createAccountFailed(error: Error): ICreateAccountFailed {
};
}
-function accountCreated(deviceConfig: NonNullable<DeviceConfig>, expiry: string): IAccountCreated {
+function accountCreated(deviceConfig: IDeviceConfig, expiry: string): IAccountCreated {
return {
type: 'ACCOUNT_CREATED',
accountToken: deviceConfig.accountToken,