@everymatrix/casino-engagement-suite-container 1.83.10 → 1.83.12

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.
@@ -4887,19 +4887,6 @@ const pointPlus = (point1, point2) => ({
4887
4887
  x: point1.x + point2.x,
4888
4888
  y: point1.y + point2.y
4889
4889
  });
4890
- const optionCompliment = {
4891
- Image: '',
4892
- Name: 'Thank you',
4893
- PrizeText: '',
4894
- PrizeImage: ''
4895
- };
4896
- const getSumProbability = (partitions) => {
4897
- let probabilityAll = 0;
4898
- partitions.map(partition => {
4899
- probabilityAll += Number(partition.probability);
4900
- });
4901
- return probabilityAll;
4902
- };
4903
4890
  const getOptionsFromPartitions = (partitions, lang) => {
4904
4891
  const options = partitions.map(_partition => {
4905
4892
  const option = {};
@@ -4912,9 +4899,6 @@ const getOptionsFromPartitions = (partitions, lang) => {
4912
4899
  });
4913
4900
  return option;
4914
4901
  });
4915
- if (getSumProbability(partitions) < 1) {
4916
- options.push(optionCompliment);
4917
- }
4918
4902
  return options;
4919
4903
  };
4920
4904
  const preloadImage = async (src) => {
@@ -4883,19 +4883,6 @@ const pointPlus = (point1, point2) => ({
4883
4883
  x: point1.x + point2.x,
4884
4884
  y: point1.y + point2.y
4885
4885
  });
4886
- const optionCompliment = {
4887
- Image: '',
4888
- Name: 'Thank you',
4889
- PrizeText: '',
4890
- PrizeImage: ''
4891
- };
4892
- const getSumProbability = (partitions) => {
4893
- let probabilityAll = 0;
4894
- partitions.map(partition => {
4895
- probabilityAll += Number(partition.probability);
4896
- });
4897
- return probabilityAll;
4898
- };
4899
4886
  const getOptionsFromPartitions = (partitions, lang) => {
4900
4887
  const options = partitions.map(_partition => {
4901
4888
  const option = {};
@@ -4908,9 +4895,6 @@ const getOptionsFromPartitions = (partitions, lang) => {
4908
4895
  });
4909
4896
  return option;
4910
4897
  });
4911
- if (getSumProbability(partitions) < 1) {
4912
- options.push(optionCompliment);
4913
- }
4914
4898
  return options;
4915
4899
  };
4916
4900
  const preloadImage = async (src) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-container",
3
- "version": "1.83.10",
3
+ "version": "1.83.12",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",