diff --git a/addon/components/currency-select.js b/addon/components/currency-select.js index f58e57e..5abda5f 100644 --- a/addon/components/currency-select.js +++ b/addon/components/currency-select.js @@ -15,12 +15,12 @@ export default class CurrencySelectComponent extends Component { let whois = this.currentUser.getOption('whois'); - this.currency = this.args.currency ?? whois?.currency?.code ?? 'USD'; + this.currency = this.args.currency ?? this.args.value ?? whois?.currency?.code ?? 'USD'; this.currencyData = this.args.currencyData ?? getCurrency(this.currency); } @action onChange(currency) { - const { onChange, onCurrencyChange } = this.args; + const { onChange, onCurrencyChange, onSelect } = this.args; this.currency = currency.code; this.currencyData = currency; @@ -29,6 +29,10 @@ export default class CurrencySelectComponent extends Component { onCurrencyChange(currency.code, currency); } + if (typeof onSelect === 'function') { + onSelect(currency.code, currency); + } + if (typeof onChange === 'function') { onChange(currency); } diff --git a/addon/components/modals/create-or-join-org.hbs b/addon/components/modals/create-or-join-org.hbs index b345687..a9966ae 100644 --- a/addon/components/modals/create-or-join-org.hbs +++ b/addon/components/modals/create-or-join-org.hbs @@ -40,7 +40,7 @@ - + {{/if}} diff --git a/addon/components/modals/verify-by-sms.hbs b/addon/components/modals/verify-by-sms.hbs index ddf653a..28dfb9a 100644 --- a/addon/components/modals/verify-by-sms.hbs +++ b/addon/components/modals/verify-by-sms.hbs @@ -1,25 +1,9 @@