react-web3-storage 1.0.52 → 1.0.61

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/config.js CHANGED
@@ -13,7 +13,8 @@ const blockChainsData = [
13
13
  network: bsc,
14
14
  name: 'bnb',
15
15
  token: '0xD566886eB93500e2BA464bd48c8D5A2556569253',
16
- receiver: '0x9449448eae234EDC73958A35A205F9648D7Bd208'
16
+ receiver: '0x9449448eae234EDC73958A35A205F9648D7Bd208',
17
+ publicRpc: 'https://bsc-rpc.publicnode.com'
17
18
  }
18
19
  ]
19
20
  .filter(({ name }) => name === 'unknown' ? process.env.NODE_ENV === 'development' : true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-web3-storage",
3
- "version": "1.0.52",
3
+ "version": "1.0.61",
4
4
  "description": "Simple web3 storage for react dapp",
5
5
  "main": "src/index.js",
6
6
  "author": "Stas Prohetamine",
@@ -233,13 +233,13 @@ const useTableStorage = (_id, _address) => {
233
233
 
234
234
  useEffect(() => {
235
235
  const timeId = setTimeout(() => {
236
- if (lastIndex === 0) {
236
+ if (lastIndex === 0 && outcome.type !== 'error') {
237
237
  setOutcome({ type: 'loaded', msg: null })
238
238
  }
239
239
  }, 5000)
240
240
 
241
241
  return () => clearTimeout(timeId)
242
- }, [lastIndex, updateItemIndex])
242
+ }, [lastIndex, updateItemIndex, outcome])
243
243
 
244
244
  return [items, addItem, updateItem, outcome]
245
245
  }