Skip to content

Commit

Permalink
fix: Return the generated short oneLink and typo in isEmpty function
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosglobal66 committed Sep 15, 2023
1 parent a1ae25c commit 3098c91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions appsflyer.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,14 @@ export const generateInviteUrl = function (args: AppsFlyerLinkGeneratorArgs) {
const listener: com.appsflyer.CreateOneLinkHttpTask.ResponseListener = new com.appsflyer.CreateOneLinkHttpTask.ResponseListener(<any>{
_successCallback: args.onSuccess,
_failureCallback: args.onError,
onResponse(): void {
onResponse(oneLinkUrl): void {
if (!this._successCallback) {
return;
}
if (typeof this._successCallback === 'function') {
try {
this._successCallback(args);
printLogs("generateInviteUrl success: " + JSON.stringify(args));
this._successCallback(oneLinkUrl);
printLogs("generateInviteUrl success: " + JSON.stringify(oneLinkUrl));
} catch (e) {
printLogs(`generateInviteUrl Error: ${e}`);
}
Expand Down Expand Up @@ -332,7 +332,7 @@ export const generateInviteUrl = function (args: AppsFlyerLinkGeneratorArgs) {
};
function isEmpty(obj) {
for (const prop in obj) {
if (Object.hasOwn(obj, prop)) {
if (Object.hasOwnProperty(obj, prop)) {
return false;
}
}
Expand Down

0 comments on commit 3098c91

Please sign in to comment.