Skip to content

Commit

Permalink
remove disabled country validation from citizenship
Browse files Browse the repository at this point in the history
  • Loading branch information
amina-deriv committed Aug 18, 2022
1 parent 296849a commit 2f3bbae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/core/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = function (env) {
openPage: sub_path,
host: is_qawolf ? 'localhost' : 'localhost.binary.sx',
https: !is_qawolf,
port: is_qawolf ? 3000 : 443,
// port: is_qawolf ? 3000 : 443,
port: 3000,
historyApiFallback: true,
stats: {
colors: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"scripts": {
"start": "npm run test && npm run serve",
"serve": "f() { echo \"Serving...\" && sudo ./node_modules/.bin/webpack serve --config \"./build/webpack.config.js\" --env open $1;}; f",
"serve": "f() { echo \"Serving...\" && ./node_modules/.bin/webpack serve --config \"./build/webpack.config.js\" --env open $1;}; f",
"serve:qa": "f() { echo \"Serving...\" && ./node_modules/.bin/webpack serve --config \"./build/webpack.config.js\" --env open $1 --env IS_QAWOLF=true;}; f",
"build": "f () { webpack --config \"./build/webpack.config.js\" --env base=$1 --env IS_CRYPTO_APP=${IS_CRYPTO_APP:-false};}; f",
"build:travis": "echo \"No build:travis specified\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const validateSignupFields = (values, residence_list) => {
item => item.text.toLowerCase() === values.citizenship.toLowerCase()
);

if (index_of_selection === -1 || residence_list[index_of_selection].disabled === 'DISABLED') {
if (index_of_selection === -1) {
errors.citizenship = localize('Unfortunately, {{website_name}} is not available in your country.', {
website_name,
});
Expand Down

0 comments on commit 2f3bbae

Please sign in to comment.