diff --git a/packages/desktop/resources/sample-config.yaml b/packages/desktop/resources/sample-config.yaml
index 45b8bd43..5934a70c 100644
--- a/packages/desktop/resources/sample-config.yaml
+++ b/packages/desktop/resources/sample-config.yaml
@@ -109,9 +109,9 @@ window/bar:
providers: ['network']
template: |
- @if (network.defaultInterface.type === 'ethernet') {
+ @if (network.defaultInterface?.type === 'ethernet') {
- } @else if (network.defaultInterface.type === 'wifi') {
+ } @else if (network.defaultInterface?.type === 'wifi') {
@if (network.defaultGateway?.signalStrength >= 80) { }
@else if (network.defaultGateway?.signalStrength >= 65) { }
@else if (network.defaultGateway?.signalStrength >= 40) { }