Skip to content

Commit

Permalink
[FIX] Omnichannel SMS / WhatsApp integration errors due to missing lo…
Browse files Browse the repository at this point in the history
…cation data (#17288)
  • Loading branch information
renatobecker authored and sampaiodiego committed Apr 14, 2020
1 parent 99c0580 commit b425642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/livechat/imports/server/rest/sms.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const defineVisitor = (smsNumber) => {
};

const normalizeLocationSharing = (payload) => {
const { extra: { fromLatitude: latitude, fromLongitude: longitude } } = payload;
const { extra: { fromLatitude: latitude, fromLongitude: longitude } = { } } = payload;
if (!latitude || !longitude) {
return;
}
Expand Down

0 comments on commit b425642

Please sign in to comment.