We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bcfdde commit 9316b9dCopy full SHA for 9316b9d
index.js
@@ -236,7 +236,7 @@ export default class OneSignal {
236
static sendTag(key, value) {
237
if (!checkIfInitialized()) return;
238
239
- if (typeof value !== "string") {
+ if (typeof value === "boolean") {
240
value = JSON.stringify(value);
241
}
242
@@ -247,7 +247,7 @@ export default class OneSignal {
247
248
249
Object.keys(tags).forEach((key)=>{
250
- if (typeof tags[key] !== "string"){
+ if (typeof tags[key] === "boolean"){
251
tags[key] = JSON.stringify(tags[key]);
252
253
})
0 commit comments