Skip to content

Commit ee09504

Browse files
committed
Fix variable names and logging in web and react-native docs templates
1 parent d382c1f commit ee09504

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

templates/react-native/docs/example.md.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ const {{ service.name | caseCamel }} = new {{service.name | caseUcfirst}}(client
2222
{% endif %}
2323

2424
{% if method.type != 'webAuth' %}
25-
console.log({% if method.type == 'location' %}result{% else %}response{% endif %});
25+
{# console.log({% if method.type == 'location' %}result{% else %}response{% endif %}); #} //previous code
26+
console.log(result); // Updated to log the result variable
2627
{% endif %}

templates/web/docs/example.md.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const {{ service.name | caseCamel }} = new {{service.name | caseUcfirst}}(client
2121
{% if method.parameters.all | length > 0 %});
2222
{% endif %}
2323

24-
{% if method.type != 'webAuth' %}
25-
console.log({% if method.type == 'location' %}result{% else %}response{% endif %});
24+
{% if method.type != 'webAuth' %}
25+
{# console.log({% if method.type == 'location' %}result{% else %}response{% endif %}); #} // previous code
26+
console.log(result); // Updated to log the result variable
2627
{% endif %}

0 commit comments

Comments
 (0)