Skip to content

Commit

Permalink
Adrienne / Prefetched email verification modal (#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 committed 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

1 comment on commit 96579c2

@vercel
Copy link

@vercel vercel bot commented on 96579c2 Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

binary.sx
deriv-app.vercel.app
deriv-app.binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.