Skip to content
Snippets Groups Projects
Commit 8e1f66c9 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Minor JS fix

parent bfb4288e
No related branches found
No related tags found
No related merge requests found
...@@ -761,7 +761,7 @@ function WalletListImportModalController($scope, $timeout, BMA, csWallet) { ...@@ -761,7 +761,7 @@ function WalletListImportModalController($scope, $timeout, BMA, csWallet) {
$scope.hasContent = angular.isDefined(file) && file !== ''; $scope.hasContent = angular.isDefined(file) && file !== '';
$scope.fileData = file.fileData ? file.fileData : ''; $scope.fileData = file.fileData ? file.fileData : '';
var isValidFile = $scope.fileData !== '' && var isValidFile = $scope.fileData !== '' &&
($scope.fileData.type == 'text/csv' || $scope.fileData.type == 'text/plain' || 'application/vnd.ms-excel' /*fix issue #810*/); ($scope.fileData.type === 'text/csv' || $scope.fileData.type === 'text/plain' || 'application/vnd.ms-excel' /*fix issue #810*/);
// Bad file type: invalid file // Bad file type: invalid file
if (!isValidFile) { if (!isValidFile) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment