From a1aa0347c70ed1b2c0d5a1b75e32a07be85c6216 Mon Sep 17 00:00:00 2001 From: Oleg Gordiichuk Date: Mon, 25 Dec 2017 17:14:09 +0200 Subject: [PATCH] Syntax fix. --- Trust/Tokens/ViewModels/TokensViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Trust/Tokens/ViewModels/TokensViewModel.swift b/Trust/Tokens/ViewModels/TokensViewModel.swift index 1c630dea9..f2643f786 100644 --- a/Trust/Tokens/ViewModels/TokensViewModel.swift +++ b/Trust/Tokens/ViewModels/TokensViewModel.swift @@ -28,7 +28,7 @@ struct TokensViewModel { guard let tickers = tickers 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 priceInUsd = Double(price.price) ?? 0 + let price = Double(price.price) ?? 0 return tokenValue * priceInUsd }