mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
[INJIMOB-3374]: reset error messages on retry vp sharing (#1986)
Signed-off-by: Alka <prasadalka1998@gmail.com>
This commit is contained in:
@@ -394,11 +394,11 @@ export const openID4VPMachine = model.createMachine(
|
|||||||
showError: {
|
showError: {
|
||||||
on: {
|
on: {
|
||||||
RETRY: {
|
RETRY: {
|
||||||
actions: ['incrementOpenID4VPRetryCount'],
|
actions: ['resetError', 'incrementOpenID4VPRetryCount'],
|
||||||
target: 'sendingVP',
|
target: 'sendingVP',
|
||||||
},
|
},
|
||||||
RESET_RETRY_COUNT: {
|
RESET_RETRY_COUNT: {
|
||||||
actions: 'resetOpenID4VPRetryCount',
|
actions: ['resetError', 'resetOpenID4VPRetryCount'],
|
||||||
},
|
},
|
||||||
RESET_ERROR: {
|
RESET_ERROR: {
|
||||||
actions: 'resetError',
|
actions: 'resetError',
|
||||||
|
|||||||
@@ -320,6 +320,15 @@ export function useSendVPScreen() {
|
|||||||
});
|
});
|
||||||
generateAndStoreLogMessage('TECHNICAL_ERROR');
|
generateAndStoreLogMessage('TECHNICAL_ERROR');
|
||||||
hasLoggedErrorRef.current = true;
|
hasLoggedErrorRef.current = true;
|
||||||
|
} else if (error === '') {
|
||||||
|
setErrorModalData({
|
||||||
|
show: false,
|
||||||
|
title: '',
|
||||||
|
message: '',
|
||||||
|
additionalMessage: '',
|
||||||
|
showRetryButton: false,
|
||||||
|
});
|
||||||
|
hasLoggedErrorRef.current = false;
|
||||||
}
|
}
|
||||||
}, [error, noCredentialsMatchingVPRequest]);
|
}, [error, noCredentialsMatchingVPRequest]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user