mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-14 03:26:56 +01:00
Update ios/Widgets/PriceWidget/PriceIntent.swift
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
b35c18572b
commit
401c4ea1a2
1 changed files with 7 additions and 2 deletions
|
@ -22,8 +22,13 @@ struct PriceIntent: AppIntent {
|
|||
Currency.saveNewSelectedCurrency()
|
||||
}
|
||||
|
||||
var lastUpdated = "--"
|
||||
var resultValue: Double = 0.0
|
||||
private enum Constants {
|
||||
static let defaultValue = "--"
|
||||
static let initialValue = 0.0
|
||||
}
|
||||
|
||||
var lastUpdated = Constants.defaultValue
|
||||
var resultValue: Double = Constants.initialValue
|
||||
|
||||
enum PriceIntentError: LocalizedError {
|
||||
case fetchFailed
|
||||
|
|
Loading…
Add table
Reference in a new issue