Skip to content

Commit

Permalink
Fix phone_number button template (#21)
Browse files Browse the repository at this point in the history
* Fix phone_number button template

* update styleCI
  • Loading branch information
kenzouno1 authored and mpociot committed Sep 9, 2017
1 parent 1043ae1 commit d12326b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/ElementButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function toArray()
$buttonArray['title'] = $this->title;
}

if ($this->type === self::TYPE_POSTBACK) {
if ($this->type === self::TYPE_POSTBACK || $this->type === self::TYPE_CALL) {
$buttonArray['payload'] = $this->payload;
} else {
$buttonArray['url'] = $this->url;
Expand Down

0 comments on commit d12326b

Please sign in to comment.