Skip to content

Commit 79eec40

Browse files
committed
fixup: missing check
1 parent ef42e6e commit 79eec40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/src/main/tunnel-state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class TunnelStateHandler {
5858
}
5959

6060
public handleNewTunnelState(newState: TunnelState) {
61-
if (newState.state === 'error') {
61+
if (newState.state === 'error' && newState.details.cause) {
6262
if (newState.details.cause === ErrorStateCause.needFullDiskPermissions) {
6363
this.receivedFullDiskAccessError = true;
6464
}

0 commit comments

Comments
 (0)