diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/MtuDialog.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/MtuDialog.kt index e4a790fdb44f..76b8359a082b 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/MtuDialog.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/MtuDialog.kt @@ -119,11 +119,13 @@ fun MtuDialog( } ) - PrimaryButton( - modifier = Modifier.fillMaxWidth(), - text = stringResource(R.string.reset_to_default_button), - onClick = onResetMtu - ) + if (mtuInitial != null) { + PrimaryButton( + modifier = Modifier.fillMaxWidth(), + text = stringResource(R.string.reset_to_default_button), + onClick = onResetMtu + ) + } PrimaryButton( modifier = Modifier.fillMaxWidth(),