@moonpay/platform-sdk-react-native 1.23.0 → 1.24.2
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -165,7 +165,7 @@ var buyButtonSpec = {
|
|
|
165
165
|
function applyCredentialsOnComplete(msg, ctx) {
|
|
166
166
|
if (msg.kind !== "complete" || !ctx.privateKey) return;
|
|
167
167
|
const connection = msg.payload;
|
|
168
|
-
if (connection.status !== ConnectionStatus.active && connection.status !== ConnectionStatus.connectionRequired) {
|
|
168
|
+
if (connection.status !== ConnectionStatus.active && connection.status !== ConnectionStatus.pending && connection.status !== ConnectionStatus.connectionRequired) {
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
171
|
if (!connection.credentials) return;
|
|
@@ -266,7 +266,7 @@ var authSpec = {
|
|
|
266
266
|
return { kind: "error", payload: msg.payload };
|
|
267
267
|
case "complete": {
|
|
268
268
|
const connection = msg.payload;
|
|
269
|
-
if (connection.status === ConnectionStatus.active || connection.status === ConnectionStatus.termsAcceptanceRequired) {
|
|
269
|
+
if (connection.status === ConnectionStatus.active || connection.status === ConnectionStatus.pending || connection.status === ConnectionStatus.termsAcceptanceRequired) {
|
|
270
270
|
return { kind: "complete", payload: msg.payload };
|
|
271
271
|
}
|
|
272
272
|
return null;
|
|
@@ -423,6 +423,8 @@ var challengeSpec = {
|
|
|
423
423
|
switch (msg.kind) {
|
|
424
424
|
case "ready":
|
|
425
425
|
return { kind: "ready" };
|
|
426
|
+
case "buttonPressed":
|
|
427
|
+
return { kind: "buttonPressed" };
|
|
426
428
|
case "complete":
|
|
427
429
|
return { kind: "complete", payload: msg.payload };
|
|
428
430
|
case "cancelled":
|