Skip to content

Commit

Permalink
Ameerul /Task 87020 To fix this scenario : Order expired before the v…
Browse files Browse the repository at this point in the history
…erification link expired (#7532)

* chore: fixed issue

* chore: fixed order expiry for buyer
  • Loading branch information
ameerul-deriv authored Apr 27, 2023
1 parent 58a5171 commit 6fc1c2a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ const OrderDetailsTimer = observer(() => {

const countDownTimer = () => {
const time_left = getTimeLeft(order_expiry_milliseconds);

if (time_left.distance < 0) {
clearInterval(interval.current);
}
if (time_left.distance < 0) clearInterval(interval.current);

setRemainingTime(time_left.label);
};
Expand All @@ -35,7 +32,7 @@ const OrderDetailsTimer = observer(() => {
interval.current = setInterval(countDownTimer, 1000);
return () => clearInterval(interval.current);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [order_expiry_milliseconds]);

if (should_show_order_timer) {
return (
Expand Down

1 comment on commit 6fc1c2a

@vercel
Copy link

@vercel vercel bot commented on 6fc1c2a Apr 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.binary.sx
deriv-app.vercel.app
deriv-app-git-master.binary.sx

Please sign in to comment.