mirror of
				https://git.wownero.com/wowlet/wowlet.git
				synced 2024-08-15 01:03:14 +00:00 
			
		
		
		
	History: fix fiat conversion
This commit is contained in:
		
							parent
							
								
									3f9080332b
								
							
						
					
					
						commit
						df93b7672a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -164,7 +164,7 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionInfo &tI
 | 
				
			||||||
                return QVariant("?");
 | 
					                return QVariant("?");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            double usd_amount = usd_price * tInfo.amount();
 | 
					            double usd_amount = usd_price * tInfo.amount();
 | 
				
			||||||
            if(this->preferredFiatSign != "$")
 | 
					            if(this->preferredFiatSymbol != "USD")
 | 
				
			||||||
                usd_amount = AppContext::prices->convert("USD", this->preferredFiatSymbol, usd_amount);
 | 
					                usd_amount = AppContext::prices->convert("USD", this->preferredFiatSymbol, usd_amount);
 | 
				
			||||||
            double fiat_rounded = ceil(Utils::roundSignificant(usd_amount, 3) * 100.0) / 100.0;
 | 
					            double fiat_rounded = ceil(Utils::roundSignificant(usd_amount, 3) * 100.0) / 100.0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue