Skip to content

Commit

Permalink
Fix javascript incompatability
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Muniz committed Sep 26, 2018
1 parent 9840986 commit 174a0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/messagesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const MyMessagesService = {
if (topics.length > 0) {
topics.forEach((topic, index, arr) => {
// Handle push / Firebase messaging
if (!Object.is(arr.length - 1, index)) {
if (index !== arr.length - 1) {
userTopics += `${topic},`
} else {
userTopics += `${topic}`
Expand Down

0 comments on commit 174a0bd

Please sign in to comment.