mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -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: {
|
||||
on: {
|
||||
RETRY: {
|
||||
actions: ['incrementOpenID4VPRetryCount'],
|
||||
actions: ['resetError', 'incrementOpenID4VPRetryCount'],
|
||||
target: 'sendingVP',
|
||||
},
|
||||
RESET_RETRY_COUNT: {
|
||||
actions: 'resetOpenID4VPRetryCount',
|
||||
actions: ['resetError', 'resetOpenID4VPRetryCount'],
|
||||
},
|
||||
RESET_ERROR: {
|
||||
actions: 'resetError',
|
||||
|
||||
@@ -320,6 +320,15 @@ export function useSendVPScreen() {
|
||||
});
|
||||
generateAndStoreLogMessage('TECHNICAL_ERROR');
|
||||
hasLoggedErrorRef.current = true;
|
||||
} else if (error === '') {
|
||||
setErrorModalData({
|
||||
show: false,
|
||||
title: '',
|
||||
message: '',
|
||||
additionalMessage: '',
|
||||
showRetryButton: false,
|
||||
});
|
||||
hasLoggedErrorRef.current = false;
|
||||
}
|
||||
}, [error, noCredentialsMatchingVPRequest]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user