@rango-dev/widget-embedded 0.30.1-next.12 → 0.30.1-next.13

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": "@rango-dev/widget-embedded",
3
- "version": "0.30.1-next.12",
3
+ "version": "0.30.1-next.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -53,4 +53,4 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  }
56
- }
56
+ }
@@ -188,13 +188,7 @@ export function SwapDetails(props: SwapDetailsProps) {
188
188
  )?.diagnosisUrl;
189
189
 
190
190
  const outputUsdValue = numberToString(
191
- parseFloat(
192
- numberToString(
193
- outputAmount,
194
- TOKEN_AMOUNT_MIN_DECIMALS,
195
- TOKEN_AMOUNT_MAX_DECIMALS
196
- )
197
- ) * (lastStep.toUsdPrice || 0),
191
+ parseFloat(outputAmount || '0') * (lastStep.toUsdPrice || 0),
198
192
  USD_VALUE_MIN_DECIMALS,
199
193
  USD_VALUE_MAX_DECIMALS
200
194
  );