@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 CHANGED
@@ -1134,6 +1134,7 @@ function PaystackBridge({
1134
1134
  if (!window.PaystackPop) {
1135
1135
  throw new Error("Paystack script loaded but PaystackPop not available");
1136
1136
  }
1137
+ const safeMetadata = accessCode ? void 0 : metadata;
1137
1138
  const setupConfig = {
1138
1139
  key: publicKey,
1139
1140
  email,
@@ -1142,7 +1143,7 @@ function PaystackBridge({
1142
1143
  currency,
1143
1144
  ref: reference,
1144
1145
  access_code: accessCode,
1145
- metadata,
1146
+ metadata: safeMetadata,
1146
1147
  channels,
1147
1148
  callback: (response) => {
1148
1149
  console.log("[PaystackBridge] Callback received", response);