Skip to content

Commit

Permalink
fix: ios not taking spaces for phone call action item
Browse files Browse the repository at this point in the history
  • Loading branch information
NenoR96 committed Mar 9, 2022
1 parent 361d7c3 commit d3ab85a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widget/controllers/widget.home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@
};

WidgetHome.openLinks = function (actionItems, $event) {
actionItems.map((el, index) => {
if (el.action === 'callNumber')
actionItems[index].phoneNumber = el.phoneNumber.replace(/\s/g, '');
});

if (actionItems && actionItems.length) {
var options = {};
var callback = function (error, result) {
Expand Down

0 comments on commit d3ab85a

Please sign in to comment.