Update ios/Widgets/PriceWidget/PriceIntent.swift

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Marcos Rodriguez Vélez 2024-10-28 22:48:55 -04:00 committed by GitHub
parent b35c18572b
commit 401c4ea1a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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