Skip to content

Commit

Permalink
fix: cordova passing odd param
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-MikeS committed Oct 1, 2024
1 parent 9027f53 commit 7e042f1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ private void logECommerceEvent(JSONObject params, CallbackContext callbackContex
}

@CordovaMethod
private void setConsent(JSONArray consentSettings, CallbackContext callbackContext) throws JSONException {
private void setConsent(String consentSetting, CallbackContext callbackContext) throws JSONException {
JSONArray consentSettings = new JSONArray(consentSetting);

if (consentSettings == null) {
callbackContext.error("Invalid input: expected an array");
return;
Expand Down

0 comments on commit 7e042f1

Please sign in to comment.