@swype-org/react-sdk 0.1.207 → 0.1.208
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5621,7 +5621,7 @@ function StepRendererContent({
|
|
|
5621
5621
|
{
|
|
5622
5622
|
merchantName,
|
|
5623
5623
|
availableBalance: selectedSource ? selectedSource.balance.available.amount : selectedAccount ? selectedAccount.wallets.reduce((sum, w) => sum + w.balance.available.amount, 0) : maxSourceBalance,
|
|
5624
|
-
remainingLimit: selectedSource
|
|
5624
|
+
remainingLimit: selectedSource != null ? selectedSource.remainingAllowance ?? null : selectedAccount?.remainingAllowance ?? null,
|
|
5625
5625
|
tokenCount,
|
|
5626
5626
|
initialAmount: parsedAmt,
|
|
5627
5627
|
processing: state.creatingTransfer,
|
|
@@ -5705,7 +5705,7 @@ function StepRendererContent({
|
|
|
5705
5705
|
merchantName,
|
|
5706
5706
|
sourceName,
|
|
5707
5707
|
remainingLimit: succeeded ? (() => {
|
|
5708
|
-
const limit = selectedSource
|
|
5708
|
+
const limit = selectedSource != null ? selectedSource.remainingAllowance ?? null : selectedAccount?.remainingAllowance ?? null;
|
|
5709
5709
|
if (limit == null) return null;
|
|
5710
5710
|
return limit > displayAmount ? limit - displayAmount : 0;
|
|
5711
5711
|
})() : void 0,
|
|
@@ -5721,7 +5721,7 @@ function StepRendererContent({
|
|
|
5721
5721
|
{
|
|
5722
5722
|
merchantName,
|
|
5723
5723
|
availableBalance: 0,
|
|
5724
|
-
remainingLimit: selectedSource
|
|
5724
|
+
remainingLimit: selectedSource != null ? selectedSource.remainingAllowance ?? null : selectedAccount?.remainingAllowance ?? null,
|
|
5725
5725
|
tokenCount,
|
|
5726
5726
|
initialAmount: depositAmount ?? 5,
|
|
5727
5727
|
processing: false,
|