Commit cae333a7 authored by Ben Hayward's avatar Ben Hayward

Fixed legacy usd modal showing for boosts

1 merge request!788Fix legacy usd option appearing
Pipeline #119340443 running with stages
in 27 minutes and 32 seconds
/**
* Boost creator modal
* TODO: Refactor / rebuild - legacy USD code is not functional.
**/
import {
Component,
Input,
......@@ -137,10 +141,7 @@ export class BoostCreatorComponent implements AfterViewInit {
getPreferredPaymentMethod() {
let currency = this.storage.get('preferred-payment-method');
if (currency === 'creditcard') {
currency = 'usd';
}
if (['offchain', 'usd', 'onchain'].indexOf(currency) !== -1)
if (['offchain', 'onchain'].indexOf(currency) !== -1)
this.boost.currency = <CurrencyType>(currency ? currency : 'offchain');
else {
this.boost.currency = 'offchain';
......
Please register or to comment