Skip to content

Commit

Permalink
hide popup edit
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Nov 22, 2023
1 parent bdde9ee commit f84d9c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ export const useProcessCancelOrder = ({
const expired = data?.orders?.[0]?.operatorSignatureExpiredAt
if (expired) {
setExpiredTime(expired)
if (expired * 1000 < Date.now()) setCancelStatus(CancelStatus.CANCEL_DONE)
if (expired * 1000 < Date.now()) {
isEdit ? onDismiss() : setCancelStatus(CancelStatus.CANCEL_DONE)
}
} else onDismiss()
} catch (error) {
if (signal.aborted) return
Expand Down

0 comments on commit f84d9c1

Please sign in to comment.