Skip to content

Commit

Permalink
resolve merge conflicts
Browse files Browse the repository at this point in the history
resolve merge conflcts

adjust for breaking abacus changes
  • Loading branch information
mike-dydx committed Jun 18, 2024
1 parent 2ff862f commit ef26f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dydx/dydxPresenters/dydxPresenters/_v4/Model+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension OrderStatusModel {

convenience init(order: Abacus.SubaccountOrder) {
switch order.status {
case .cancelled, .canceling:
case .canceled, .canceling:
self.init(status: .red)
case .filled:
self.init(status: .green)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private class dydxTradeStatusViewPresenter: HostedViewPresenter<dydxTradeStatusV
private extension OrderStatus {
var statusIcon: dydxTradeStatusLogoViewModel.StatusIcon? {
switch self {
case .cancelled: return .failed
case .canceled: return .failed
case .canceling, .pending, .partiallyfilled: return .pending
case .filled: return .filled
case .open, .untriggered: return .open
Expand All @@ -292,7 +292,7 @@ private extension OrderStatus {

var detailKey: String? {
switch self {
case .cancelled: return "APP.TRADE.ORDER_CANCELED_DESC"
case .canceled: return "APP.TRADE.ORDER_CANCELED_DESC"
case .canceling, .pending, .partiallyfilled: return "APP.TRADE.ORDER_PENDING_DESC"
case .filled: return "APP.TRADE.ORDER_FILLED_DESC"
case .open: return "APP.TRADE.ORDER_PLACED_DESC"
Expand Down

0 comments on commit ef26f2b

Please sign in to comment.