Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jennantilla committed Apr 30, 2024
1 parent a9d83ae commit 2499250
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,11 @@ export namespace OneSignal {
}

const convertedTags = tags as { [key: string]: any };
Object.keys(tags).forEach(function(key){
// forces values to be string types
if (typeof convertedTags[key] !== "string") {
convertedTags[key] = JSON.stringify(convertedTags[key]);
}
Object.keys(tags).forEach(function (key) {
// forces values to be string types
if (typeof convertedTags[key] !== 'string') {
convertedTags[key] = JSON.stringify(convertedTags[key]);
}
});

RNOneSignal.addTags(tags);
Expand Down

0 comments on commit 2499250

Please sign in to comment.