Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
407
Merge Requests
66
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
cae333a7
Commit
cae333a7
authored
1 hour ago
by
Ben Hayward
Browse files
Options
Download
Fixed legacy usd modal showing for boosts
parent
4f739eaf
fix/legacy-usd-boosts-1341
1 merge request
!788
Fix legacy usd option appearing
Pipeline
#119340443
running with stages
in 27 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/app/modules/boost/creator/creator.component.ts
View file @
cae333a7
/**
* 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
'
;
...
...
This diff is collapsed.
Please
register
or
sign in
to comment