I Need help in unity joystick

Am having a problem that when i move my joystick the player rotates and it fines but when i leave crosshair the player is back to straight not rotating.

void Update()
{
    move.x = joystick.Horizontal;
    move.y = joystick.Vertical;

    float hAxis = joystick.Horizontal;
    float vAxis = joystick.Vertical;

    float zAxis = Mathf.Atan2(hAxis, vAxis) * Mathf.Rad2Deg;
    transform.eulerAngles = new Vector3(0,0,-zAxis);
}