chore(lint): remove non-null assertion in order timeout map
This commit is contained in:
+2
-2
@@ -176,12 +176,12 @@ function scheduleOrderTimeout(orderId: string, status: OrderStatus) {
|
||||
return
|
||||
}
|
||||
|
||||
const timeoutMap: Partial<Record<OrderStatus, number>> = {
|
||||
const timeoutMap: Record<"pending_accept" | "pending_close" | "pending_review", number> = {
|
||||
pending_accept: ORDER_ACCEPT_TIMEOUT_MS,
|
||||
pending_close: ORDER_CLOSE_TIMEOUT_MS,
|
||||
pending_review: ORDER_REVIEW_TIMEOUT_MS,
|
||||
}
|
||||
const timeoutMs = timeoutMap[status]!
|
||||
const timeoutMs = timeoutMap[status]
|
||||
|
||||
const timer = setTimeout(() => {
|
||||
const state = useOrderStore.getState()
|
||||
|
||||
Reference in New Issue
Block a user