Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit b2babbd

Browse files
Mohsen / fixed duplicate idv notification error (#7154)
* fix: fixed duplicate idv notification error co-authored : <mitra@deriv.com> * fix: applied the suggested changes and used jsx templates * fix: fixed eslint issue * chore: updated node versions - updated node versions in package.json, circlci config and crowdin github action * chore: update node version in package.json * chore: revert unrelated codes Co-authored-by: Habib Deriv <88178645+habib-deriv@users.noreply.github.com>
1 parent 7433990 commit b2babbd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/javascript/app/pages/user/account/authenticate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,10 @@ const Authenticate = (() => {
12311231
await BinarySocket.send(submit_data).then(response => {
12321232
if (response.error) {
12331233
// Show some error message to user
1234+
$('#duplicate_idv_button').on('click', () => {window.location.reload(); }).css({ 'margin': '0 auto' ,'display': 'block' });
1235+
$('#idv_document_submit').toggleClass('invisible');
1236+
$('#duplicate_idv_container').toggleClass('invisible');
1237+
$('#duplicate_idv_text').text(response.error.message);
12341238
} else {
12351239
// Success - Update authentication object with new status
12361240
BinarySocket.send({ get_account_status: 1 }, { forced: true }).then(res => {

src/templates/app/user/authenticate.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ const Authenticate = () => (
4848
/>
4949
</div>
5050

51+
<div id='duplicate_idv_container' className='container invisible'>
52+
<p id='duplicate_idv_text' className='notice-msg center-text' />
53+
<button id='duplicate_idv_button' className='button container'>{it.L('Try Again')}</button>
54+
</div>
55+
5156
<div id='idv_document_submit' className='idv-container invisible'>
5257
<div className='document-submit center-text'>
5358
<img className='idv-container__main-icon' src={it.url_for('images/pages/authenticate/verify_identity.svg')} />

0 commit comments

Comments
 (0)