@reevit/react 0.5.1 → 0.5.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.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1128,6 +1128,7 @@ function PaystackBridge({
|
|
|
1128
1128
|
if (!window.PaystackPop) {
|
|
1129
1129
|
throw new Error("Paystack script loaded but PaystackPop not available");
|
|
1130
1130
|
}
|
|
1131
|
+
const safeMetadata = accessCode ? void 0 : metadata;
|
|
1131
1132
|
const setupConfig = {
|
|
1132
1133
|
key: publicKey,
|
|
1133
1134
|
email,
|
|
@@ -1136,7 +1137,7 @@ function PaystackBridge({
|
|
|
1136
1137
|
currency,
|
|
1137
1138
|
ref: reference,
|
|
1138
1139
|
access_code: accessCode,
|
|
1139
|
-
metadata,
|
|
1140
|
+
metadata: safeMetadata,
|
|
1140
1141
|
channels,
|
|
1141
1142
|
callback: (response) => {
|
|
1142
1143
|
console.log("[PaystackBridge] Callback received", response);
|