diff --git a/applications/system/findmy/scenes/findmy_scene_config.c b/applications/system/findmy/scenes/findmy_scene_config.c index 3a79e3e10..0ab63be42 100644 --- a/applications/system/findmy/scenes/findmy_scene_config.c +++ b/applications/system/findmy/scenes/findmy_scene_config.c @@ -32,11 +32,7 @@ void findmy_scene_config_show_mac(VariableItem* item) { FindMy* app = variable_item_get_context(item); uint8_t index = variable_item_get_current_value_index(item); findmy_toggle_show_mac(app, index); - if(app->state.show_mac == true) { - variable_item_set_current_value_text(item, "Yes"); - } else { - variable_item_set_current_value_text(item, "No"); - } + variable_item_set_current_value_text(item, app->state.show_mac ? "Yes" : "No"); variable_item_set_current_value_index(item, app->state.show_mac); }