Blink Button Not working

I have used blynk application with generic esp8266 unit.
i have created virtual LED/Button for operation. my button is not functioning while button is selected

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <WidgetRTC.h>
BlynkTimer timer;
WidgetRTC rtc;  // Set RTC widget.
char auth[] = "";// COde generated from Blynk
char ssid[] = "HOT SPOT";// user has to set wifi device SSID
char pass[] = "Test123456";// user has to set wifi device Password


WidgetLED led25(25);
WidgetLED led22(22);
WidgetLED led23(23);
WidgetLED led24(24);



void setup() {
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  setSyncInterval(360);
}

void loop() {
  Blynk.run();
  timer.run();
//BLYNK_WRITE(V51);

}


BLYNK_CONNECTED()
{
  Blynk.syncVirtual(V3); // sync timeinput widget
  Blynk.syncVirtual(V4); // sync timeinput widget
  Blynk.syncVirtual(V5); // sync timeinput widget
  Blynk.syncVirtual(V6); // sync timeinput widget
  Blynk.syncVirtual(V2);
  Blynk.syncVirtual(V51);
  // Blynk.syncVirtual(V51);
  //     Blynk.syncVirtual(V52);
  //    Blynk.syncVirtual(V53);

}

BLYNK_WRITE(V51)  // Time Zone1 Button Selected
{
  if (param.asInt() == 1)
  {
    Serial.println("Time Zone1 is selected ");
    led22.on(); digitalWrite(5, HIGH);

  } else
  { digitalWrite(5, LOW);
    led22.off();
  }
}

Is this the button widget connected to V51 ?
How is your button widget configured in the app?

Pete.

I have virtual led and virtual button

button assigned to 51 and led assigned to 22. when button pressed led should on and button is off led should be off

Device is coming online . but virtual led & digital outptut is not turning on

Post a screenshot.

Pete.