Fix poorly written sentence

This commit is contained in:
Rebecca Law
2019-11-22 11:02:22 +00:00
parent 5d6886242b
commit 6b09075779

View File

@@ -15,7 +15,7 @@ from app.v2.utils import get_valid_json
@v2_template_blueprint.route("/<template_id>/preview", methods=['POST'])
def post_template_preview(template_id):
# If the payload is is empty if there is no personalisation in the template.
# The payload is empty when there are no place holders in the template.
_data = request.get_data(as_text=True)
if not _data:
_data = {}