Skip to content

Commit

Permalink
M2-7315: [Mobile] Loader is looping at the screen after clicking on E…
Browse files Browse the repository at this point in the history
…xit button
  • Loading branch information
AlekseyNalivaiko committed Jul 15, 2024
1 parent c12589a commit 77f3cd8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ export function useOnNotificationTap({

const executing = getCurrentRoute() === 'InProgressActivity';

const isAutocompletionWorking = getCurrentRoute() === 'Autocompletion';

AnalyticsService.track(MixEvents.NotificationTap, {
[MixProperties.AppletId]: appletId,
});
Expand All @@ -120,6 +122,13 @@ export function useOnNotificationTap({
navigator.goBack();
}

if (isAutocompletionWorking) {
Logger.log(
'[useOnNotificationTap]: Notification tap ignored as autocompletion is working (M2-7315)',
);
return;
}

setTimeout(
() => {
startEntity(appletId!, entityId, entityType, eventId!, entityName!);
Expand Down

0 comments on commit 77f3cd8

Please sign in to comment.