Skip to content

Commit

Permalink
Fix #6178: semi-colons
Browse files Browse the repository at this point in the history
  • Loading branch information
gurhar1133 committed Aug 2, 2023
1 parent 0b1e0c2 commit 8aa5654
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sirepo/package_data/static/js/silas.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ SIREPO.app.directive('pumpRepRate', function(appState, validationService) {
'input',
! ($scope.model[$scope.field] >= 1 && $scope.model[$scope.field] < 100),
'1 < Pump Rep Rate < 100 is not a valid choice',
)
);
return 'sr-input-warning';
}
};
}
};
});
Expand Down Expand Up @@ -547,7 +547,7 @@ SIREPO.viewLogic('thermalTransportCrystalView', function(appState, panelState, s
SIREPO.viewLogic('thermalTransportSettingsView', function(appState, panelState, silasService, $scope) {

const setSimType = () => {
const r = appState.models.thermalTransportCrystal.crystal.pump_rep_rate
const r = appState.models.thermalTransportCrystal.crystal.pump_rep_rate;
// can only do simulated/fenics if pump_rep_rate <= 1
if (r <= 1) {
appState.models.thermalTransportSettings.crystalSimType = 'simulated';
Expand All @@ -557,8 +557,8 @@ SIREPO.viewLogic('thermalTransportSettingsView', function(appState, panelState,
'thermalTransportSettings',
'crystalSimType',
r > 1,
)
}
);
};

$scope.$on('crystal.changed', setSimType);
});
Expand Down

0 comments on commit 8aa5654

Please sign in to comment.