Syntax fix.

pull/2/head
Oleg Gordiichuk 7 years ago committed by Michael Scoff
parent ea56a3a0a1
commit a1aa0347c7
  1. 2
      Trust/Tokens/ViewModels/TokensViewModel.swift

@ -28,7 +28,7 @@ struct TokensViewModel {
guard let tickers = tickers else { return 0 } guard let tickers = tickers else { return 0 }
guard !token.valueBigInt.isZero, let price = tickers[token.symbol] else { return 0 } guard !token.valueBigInt.isZero, let price = tickers[token.symbol] else { return 0 }
let tokenValue = CurrencyFormatter.plainFormatter.string(from: token.valueBigInt, decimals: token.decimals).doubleValue let tokenValue = CurrencyFormatter.plainFormatter.string(from: token.valueBigInt, decimals: token.decimals).doubleValue
let priceInUsd = Double(price.price) ?? 0 let price = Double(price.price) ?? 0
return tokenValue * priceInUsd return tokenValue * priceInUsd
} }

Loading…
Cancel
Save