Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Conversation

nazaninreihani
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 52.786% when pulling 475b2bb on nazaninreihani:fix-tnc-link into f75a638 on binary-com:dev.

const firstNameIsValid = firstName.length >= 2;
const boot = storage.hasOwnProperty('boot') && storage.boot ? JSON.parse(storage.boot) : false;
const language = boot && boot.hasOwnProperty('language') && boot.language ? boot.language.toLowerCase() : 'en';
const linkToTermsAndConditions = `https://www.binary.com/${language}/terms-and-conditions.html`;
Copy link
Contributor

@arnabk arnabk Jun 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nazaninreihani Let me know what do you think about writing the code in this way

const boot = storage.boot ? JSON.parse(storage.boot) : '';
const language = boot.language ? boot.language.toLowerCase() : 'en'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes this is cleaner code, I will change it , thanks

@coveralls
Copy link

Coverage Status

Coverage remained the same at 52.786% when pulling 764c844 on nazaninreihani:fix-tnc-link into f75a638 on binary-com:dev.

@arnabk arnabk merged commit 54a1f57 into regentmarkets-repo-archive:dev Jun 7, 2017
@nazaninreihani nazaninreihani deleted the fix-tnc-link branch June 12, 2017 12:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants