Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: cannot call method on tab prior to initialization
  • Loading branch information
farabi-deriv committed Jul 15, 2025
commit cb8c39e5f33b3545d39ed235c467c45ed6076e51
4 changes: 2 additions & 2 deletions build/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ module.exports = function (grunt) {
livereload: {
options: {
hostname : '0.0.0.0',
port : 8090,
port : 8443,
protocol : 'https',
base : 'dist',
open : {
appName: {
name: 'Google\ Chrome'
},
target : 'https://localhost:8090',
target : 'https://localhost:8443',
},
middleware: (connect, options) => {
const middlewares = [
Expand Down
3 changes: 2 additions & 1 deletion src/javascript/app/pages/user/update_total.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ let total_currency_virtual = 'USD';
let total_currency_real;

const updateTotal = (total) => {
const is_demo_tab = $('#acc_tabs').data('ui-tabs') ? $('#acc_tabs').tabs('option', 'active') === 1 : false;
const acc_tabs_element = $('#acc_tabs');
const is_demo_tab = acc_tabs_element.length && acc_tabs_element.data('ui-tabs') ? acc_tabs_element.tabs('option', 'active') === 1 : false;
const el_total_amount = $('#account__switcher-total-balance-amount');
const all_login_ids = Client.getAllLoginids();
const real_accounts = all_login_ids.filter((loginid) => !/^VRT/.test(loginid));
Expand Down
Loading