forked from adam/discord-bot-shtik
fixes #46
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
This commit is contained in:
parent
92988257b6
commit
9b41324665
@ -181,7 +181,10 @@ namespace vassago.Conversion
|
||||
accumulator = reverseConversion.Item4(accumulator);
|
||||
}
|
||||
}
|
||||
if (currencyConf != null && (normalizedDestUnit == currencyConf.Base || currencyConf.rates.Select(r => r.Key).Contains(normalizedDestUnit)))
|
||||
if (currencyConf != null && (
|
||||
(normalizedDestUnit == currencyConf.Base || currencyConf.rates.Select(r => r.Key).Contains(normalizedDestUnit))
|
||||
&& (normalizedSourceUnit == currencyConf.Base || currencyConf.rates.Select(r => r.Key).Contains(normalizedSourceUnit))
|
||||
))
|
||||
{
|
||||
return $"{String.Format("approximately {0:0.00}", accumulator)} {normalizedDestUnit} as of {currencyConf.DateUpdated.ToLongDateString()}";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user