@smartico/public-api 0.0.313 → 0.0.314

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.313",
3
+ "version": "0.0.314",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -188,7 +188,7 @@ export class MissionUtils {
188
188
  const operator = userStateOperator[k]?.op;
189
189
 
190
190
  if (operatorsMulti.includes(operator)) {
191
- const value = userStateParams[k];
191
+ const value = userStateParams[k]?.filter(v => Boolean(v));
192
192
  if (value && value.length > 0) {
193
193
  replacementValue = value.map((v: string) => {
194
194
  const cleaned = v.replace(/_/g, ' ').toLowerCase();
@@ -1,6 +1,6 @@
1
1
  export interface AffectsProgress {
2
- affects_level:boolean,
3
- affects_leaderboard:boolean,
4
- affects_current_balance:boolean,
2
+ affects_level: boolean,
3
+ affects_leaderboard: boolean,
4
+ affects_current_balance: boolean,
5
5
  rewardPoints: number
6
6
  }