@huma-finance/widgets 0.0.51-beta.393 → 0.0.51

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": "@huma-finance/widgets",
3
- "version": "0.0.51-beta.393+9ca76ed",
3
+ "version": "0.0.51",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,8 +30,8 @@
30
30
  "@ethersproject/experimental": "^5.7.0",
31
31
  "@ethersproject/providers": "^5.6.0",
32
32
  "@ethersproject/units": "^5.6.0",
33
- "@huma-finance/sdk": "^0.0.51-beta.393+9ca76ed",
34
- "@huma-finance/shared": "^0.0.51-beta.393+9ca76ed",
33
+ "@huma-finance/sdk": "^0.0.51",
34
+ "@huma-finance/shared": "^0.0.51",
35
35
  "@mui/icons-material": "^5.3.0",
36
36
  "@mui/material": "^5.0.6",
37
37
  "@mui/styles": "^5.0.2",
@@ -193,5 +193,5 @@
193
193
  "optionalDependencies": {
194
194
  "encoding": "^0.1.13"
195
195
  },
196
- "gitHead": "9ca76ed4e8bd517901b7f8e0016e216ff0b6db47"
196
+ "gitHead": "3012e6ba7d1d3a09ff4d75b9e2dd4dd1cb21654d"
197
197
  }
@@ -1,4 +1,4 @@
1
- import { UnderlyingTokenInfo } from '@huma-finance/shared'
1
+ import { formatNumber, UnderlyingTokenInfo } from '@huma-finance/shared'
2
2
  import { ethers } from 'ethers'
3
3
  import React from 'react'
4
4
 
@@ -22,7 +22,9 @@ export function Done({
22
22
  )
23
23
 
24
24
  const content = [
25
- `You successfully canceled ${shares} shares redemption request.`,
25
+ `Your request to cancel the redemption of ${formatNumber(
26
+ shares,
27
+ )} shares has been successfully processed.`,
26
28
  ]
27
29
 
28
30
  return <TxDoneModal handleAction={handleAction} content={content} />
@@ -92,10 +92,12 @@ export function LendSupplyV2({
92
92
 
93
93
  if (poolInfo.supplyLink) {
94
94
  openInNewTab(poolInfo.supplyLink)
95
+ handleClose()
95
96
  }
96
97
  }
97
98
  }, [
98
99
  dispatch,
100
+ handleClose,
99
101
  lenderApproveStatusFetched,
100
102
  lenderApprovedJunior,
101
103
  lenderApprovedSenior,