[INJIMOB-3437]: Fixed crash issue due to pop dimiss (#2029)

Signed-off-by: balachandarg-tw <balachandar.g@thoughtworks.com>
This commit is contained in:
balachandarg-tw
2025-07-28 12:49:36 +05:30
committed by GitHub
parent 6016cccfa2
commit d3fdbead0e

View File

@@ -226,8 +226,14 @@ export const SendVPScreen: React.FC<ScanLayoutProps> = props => {
OVP_ERROR_MESSAGES.DECLINED,
OVP_ERROR_CODE.DECLINED,
);
controller.GO_TO_HOME();
BackHandler.exitApp();
controller.overlayDetails?.primaryButtonEvent();
setTimeout(
() => {
controller.GO_TO_HOME();
BackHandler.exitApp();
},
isIOS() ? 400 : 200,
);
};
}
return controller.overlayDetails?.primaryButtonEvent;