Skip to content

Commit 42b5fca

Browse files
Update main.js
1 parent 5b1d27f commit 42b5fca

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

js/main.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -732,23 +732,11 @@ function changeAccordionButtonText(button, text) {
732732
}
733733

734734
function showBuySellWidgets() {
735-
736-
var sellWidget = window.MoonPayWebSdk.init({
737-
flow: 'sell',
738-
environment: 'production',
739-
containerNodeSelector: '#sell-widget',
740-
variant: 'embedded',
741-
params: {
742-
theme: 'light',
743-
colorCode: '#FF9500',
744-
apiKey: 'pk_live_QWvwDl3WJAq7S8fDjsOUMfjn09DSw8R'
745-
}
746-
});
747735

748736
var buyWidget = window.MoonPayWebSdk.init({
749737
flow: 'buy',
750738
environment: 'production',
751-
containerNodeSelector: '#buy-widget',
739+
containerNodeSelector: '.buy-widget',
752740
variant: 'embedded',
753741
params: {
754742
apiKey: 'pk_live_QWvwDl3WJAq7S8fDjsOUMfjn09DSw8R',
@@ -757,7 +745,6 @@ function showBuySellWidgets() {
757745
}
758746
});
759747

760-
sellWidget.show();
761748
buyWidget.show();
762749
}
763750

0 commit comments

Comments
 (0)