diff --git a/android/src/main/java/io/invertase/firebase/invites/RNFirebaseInvites.java b/android/src/main/java/io/invertase/firebase/invites/RNFirebaseInvites.java index 1504194c0b..1f9b0c83c1 100644 --- a/android/src/main/java/io/invertase/firebase/invites/RNFirebaseInvites.java +++ b/android/src/main/java/io/invertase/firebase/invites/RNFirebaseInvites.java @@ -140,13 +140,13 @@ public void sendInvitation(ReadableMap invitationMap, Promise promise) { ib = ib.setAdditionalReferralParameters(arpMap); } if (androidMap.hasKey("emailHtmlContent")) { - ib = ib.setEmailHtmlContent(invitationMap.getString("emailHtmlContent")); + ib = ib.setEmailHtmlContent(androidMap.getString("emailHtmlContent")); } if (androidMap.hasKey("emailSubject")) { - ib = ib.setEmailSubject(invitationMap.getString("emailSubject")); + ib = ib.setEmailSubject(androidMap.getString("emailSubject")); } if (androidMap.hasKey("googleAnalyticsTrackingId")) { - ib = ib.setGoogleAnalyticsTrackingId(invitationMap.getString("googleAnalyticsTrackingId")); + ib = ib.setGoogleAnalyticsTrackingId(androidMap.getString("googleAnalyticsTrackingId")); } }