@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.cjs
CHANGED
|
@@ -5624,7 +5624,7 @@ function StepRendererContent({
|
|
|
5624
5624
|
{
|
|
5625
5625
|
merchantName,
|
|
5626
5626
|
availableBalance: selectedSource ? selectedSource.balance.available.amount : selectedAccount ? selectedAccount.wallets.reduce((sum, w) => sum + w.balance.available.amount, 0) : maxSourceBalance,
|
|
5627
|
-
remainingLimit: selectedSource
|
|
5627
|
+
remainingLimit: selectedSource != null ? selectedSource.remainingAllowance ?? null : selectedAccount?.remainingAllowance ?? null,
|
|
5628
5628
|
tokenCount,
|
|
5629
5629
|
initialAmount: parsedAmt,
|
|
5630
5630
|
processing: state.creatingTransfer,
|
|
@@ -5708,7 +5708,7 @@ function StepRendererContent({
|
|
|
5708
5708
|
merchantName,
|
|
5709
5709
|
sourceName,
|
|
5710
5710
|
remainingLimit: succeeded ? (() => {
|
|
5711
|
-
const limit = selectedSource
|
|
5711
|
+
const limit = selectedSource != null ? selectedSource.remainingAllowance ?? null : selectedAccount?.remainingAllowance ?? null;
|
|
5712
5712
|
if (limit == null) return null;
|
|
5713
5713
|
return limit > displayAmount ? limit - displayAmount : 0;
|
|
5714
5714
|
})() : void 0,
|
|
@@ -5724,7 +5724,7 @@ function StepRendererContent({
|
|
|
5724
5724
|
{
|
|
5725
5725
|
merchantName,
|
|
5726
5726
|
availableBalance: 0,
|
|
5727
|
-
remainingLimit: selectedSource
|
|
5727
|
+
remainingLimit: selectedSource != null ? selectedSource.remainingAllowance ?? null : selectedAccount?.remainingAllowance ?? null,
|
|
5728
5728
|
tokenCount,
|
|
5729
5729
|
initialAmount: depositAmount ?? 5,
|
|
5730
5730
|
processing: false,
|