Skip to content

Commit

Permalink
Don't show currency 'off' (#27)
Browse files Browse the repository at this point in the history
* Don't show currency 'off'

* Undo debug change
  • Loading branch information
tw0po1nt authored Oct 20, 2023
1 parent 91c86e6 commit 31cbd05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public struct TransactionHistory: Reducer {
}
public var latestFiatPrice: Double?
public var fiatConversion: (NighthawkSetting.FiatCurrency, Double)? {
if let latestFiatPrice {
if let latestFiatPrice, preferredCurrency != .off {
(preferredCurrency, latestFiatPrice)
} else {
nil
Expand Down
2 changes: 1 addition & 1 deletion modules/Sources/Features/SendFlow/Review/Review.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public struct Review: Reducer {
}
public var latestFiatPrice: Double?
public var fiatConversion: (NighthawkSetting.FiatCurrency, Double)? {
if let latestFiatPrice {
if let latestFiatPrice, preferredCurrency != .off {
(preferredCurrency, latestFiatPrice)
} else {
nil
Expand Down
2 changes: 1 addition & 1 deletion modules/Sources/Features/SendFlow/SendFlow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public struct SendFlow: Reducer {
}
public var latestFiatPrice: Double?
public var fiatConversion: (NighthawkSetting.FiatCurrency, Double)? {
if let latestFiatPrice {
if let latestFiatPrice, preferredCurrency != .off {
(preferredCurrency, latestFiatPrice)
} else {
nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public struct TransactionDetail: Reducer {
return userStoredPreferences.fiatCurrency()
}
public var fiatConversion: (NighthawkSetting.FiatCurrency, Double)? {
if let latestFiatPrice {
if let latestFiatPrice, preferredCurrency != .off {
(preferredCurrency, latestFiatPrice)
} else {
nil
Expand Down

0 comments on commit 31cbd05

Please sign in to comment.