apps-sdk 1.0.177 → 1.0.178

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": "apps-sdk",
3
- "version": "1.0.177",
3
+ "version": "1.0.178",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,12 +36,14 @@ class PayWall extends React.Component {
36
36
  }
37
37
 
38
38
  getPayWallDataWithRetry = async (type, keyword) => {
39
- if (this.state.retryCount >= this.maxRetries) {
40
- console.log('Máximo número de reintentos alcanzado.');
39
+ if (this.state.retryCount > this.maxRetries) {
40
+ console.log('Máximo número de reintentos alcanzado:', this.maxRetries);
41
41
  this.state.retryCount = 0;
42
42
  return;
43
43
  } else {
44
- console.log('Reintentando obtener datos del paywall. Reintento número:', this.state.retryCount);
44
+ if (this.state.retryCount > 0) {
45
+ console.log('Reintentando obtener datos del paywall. Reintento número:', this.state.retryCount);
46
+ }
45
47
  }
46
48
 
47
49
  this.getPayWallData(type, keyword);