Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
fix: commited sugesstions
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv committed Jan 25, 2023
1 parent 44171df commit bd4b737
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/javascript/app/base/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,14 @@ const Header = (() => {
cancel_text : localize('Cancel'),
ok_text : localize('Go to Deriv'),
onConfirm : () => { window.location.href = url_on_confirm; },
onAbort : undefined,
});
};

const showHidePulser = (should_show) => { $('.upgrademessage').children('a').setVisibility(should_show); };

const showHideNewAccount = (upgrade_info) => {
const user_accounts = getElementById('user_accounts');
if (upgrade_info.can_upgrade || upgrade_info.can_open_multi) {
if ((upgrade_info.can_upgrade || upgrade_info.can_open_multi) && user_accounts) {
changeAccountsText(1, localize('Create Account'));
user_accounts.addEventListener('click', () => showGoToDerivAlertPopup());
} else {
Expand Down

0 comments on commit bd4b737

Please sign in to comment.