Skip to content

Commit

Permalink
Adrienne / Prefetched email verification modal (deriv-com#8027)
Browse files Browse the repository at this point in the history
* chore: prefetched email verification modal

* chore: added settimoeut

* chore: used eager mode

* chore: import model directly

* chore: reverted direct imports

* chore: added settimeout
  • Loading branch information
adrienne-deriv authored Mar 27, 2023
1 parent 6073091 commit 96579c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/p2p/src/stores/order-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ export default class OrderStore {
if (response) {
if (response.error) {
if (response.error.code === api_error_codes.ORDER_EMAIL_VERIFICATION_REQUIRED) {
this.root_store.general_store.showModal({ key: 'EmailVerificationModal', props: {} });
setTimeout(
() => this.root_store.general_store.showModal({ key: 'EmailVerificationModal', props: {} }),
230
);
} else if (
response?.error.code === api_error_codes.INVALID_VERIFICATION_TOKEN ||
response?.error.code === api_error_codes.EXCESSIVE_VERIFICATION_REQUESTS
Expand Down

0 comments on commit 96579c2

Please sign in to comment.