Skip to content

Commit

Permalink
console: Remove attempt message when wifi connection is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelJankoski committed Sep 20, 2024
1 parent 0dd1941 commit 65e0d22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const WifiSettingsFormFields = ({ initialValues, isWifiConnected, saveFormClicke
]

const connectionStatus = useMemo(() => {
if (!values.wifi_profile.profile_id) return null
if (!values.wifi_profile.profile_id || !values.wifi_profile._enable_wifi_connection) return null
if (hasChanged) {
return { message: m.saveToConnect, icon: <Icon icon={IconInfoCircle} /> }
}
Expand Down Expand Up @@ -149,6 +149,7 @@ const WifiSettingsFormFields = ({ initialValues, isWifiConnected, saveFormClicke
hasChanged,
isWifiConnected,
saveFormClicked,
values.wifi_profile._enable_wifi_connection,
values.wifi_profile._override,
values.wifi_profile.profile_id,
])
Expand Down

0 comments on commit 65e0d22

Please sign in to comment.