@depay/widgets 7.3.0 → 7.3.1
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/dist/esm/index.bundle.js +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.js +3 -1
- package/package.json +1 -1
package/dist/umd/index.js
CHANGED
|
@@ -20744,7 +20744,9 @@
|
|
|
20744
20744
|
var mainAction = function mainAction() {
|
|
20745
20745
|
var displayedAmount;
|
|
20746
20746
|
|
|
20747
|
-
if (amount &&
|
|
20747
|
+
if (amount && configuredAmount && configuredAmount.currency && configuredAmount.fix) {
|
|
20748
|
+
displayedAmount = paymentValue.toString();
|
|
20749
|
+
} else if (amount && (configuredAmount == undefined || configuredAmount.token != true)) {
|
|
20748
20750
|
displayedAmount = new localCurrency.Currency({
|
|
20749
20751
|
amount: amount.toFixed(2),
|
|
20750
20752
|
code: currencyCode
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "7.3.
|
|
4
|
+
"version": "7.3.1",
|
|
5
5
|
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
|
|
6
6
|
"main": "./dist/umd/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|