Skip to content

Commit 05fbd7f

Browse files
authored
Merge pull request #1 from topcoder-platform/bug-bash
latest pull
2 parents 513a368 + 30dd2e3 commit 05fbd7f

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

src/shared/components/Settings/Account/LinkedAccount/AddWebLink.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class AddWebLink extends React.Component {
7878
const {
7979
allLinks,
8080
} = this.props;
81-
return _.some(allLinks, link => link.URL && (link.URL.toLowerCase() === webLink.toLowerCase()));
81+
return _.some(allLinks, link => link.URL && (link.URL.toLowerCase().replace(/https?:\/\//, '') === webLink.toLowerCase().replace(/https?:\/\//, '')));
8282
}
8383

8484
render() {

src/shared/components/Settings/Account/LinkedAccount/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default class LinkedAccount extends React.Component {
128128
const externalAccountsData = profileState.externalAccounts || {};
129129

130130
if (!linkedAccounts.length) {
131-
const providers = _.omit(externalAccountsData, ['userId', 'updatedAt', 'createdAt', 'createdBy', 'updatedBy', 'handle']);
131+
const providers = _.omit(externalAccountsData, ['userId', 'updatedAt', 'createdAt', 'createdBy', 'updatedBy']);
132132

133133
_.forEach(_.keys(providers), (p) => {
134134
if (providers[p]) {

src/shared/components/Settings/Account/LinkedAccount/modal.scss

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
opacity: 1;
4848
border-radius: 4px;
4949
padding: 40px;
50+
max-width: 100%;
5051
}
5152

5253
@media (min-width: 768px) {

src/shared/components/Settings/Account/LinkedAccount/styles.scss

+6
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@
4343

4444
i.fa-globe {
4545
color: #82a0aa;
46+
cursor: pointer;
4647
}
4748

4849
i.fa-weblinks {
4950
color: #82a0aa;
51+
cursor: pointer;
5052
}
5153

5254
i.fa-bitbucket {
@@ -111,6 +113,8 @@
111113

112114
font-size: 18px;
113115
height: 20px;
116+
overflow: hidden;
117+
text-overflow: ellipsis;
114118
}
115119

116120
.title {
@@ -496,6 +500,8 @@
496500
.handle {
497501
margin-top: 20px;
498502
margin-bottom: 20px;
503+
overflow: hidden;
504+
text-overflow: ellipsis;
499505
}
500506

501507
.title {

src/shared/components/Settings/CofirmationModal/styles.scss

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
opacity: 1;
4848
border-radius: 4px;
4949
padding: 40px;
50+
max-width: 100%;
5051
}
5152

5253
@media (min-width: 768px) {

src/shared/components/Settings/Profile/BasicInfo/index.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ export default class BasicInfo extends ConsentComponent {
212212
newBasicInfo.tshirtSize = null;
213213
}
214214

215+
_.forEach(newBasicInfo.addresses[0], (value, key) => {
216+
newBasicInfo.addresses[0][key] = _.trim(value);
217+
});
218+
_.forEach(['currentLocation', 'primaryInterestInTopcoder', 'description'], (key) => {
219+
newBasicInfo[key] = _.trim(newBasicInfo[key]);
220+
});
215221
// This is a hack to check if the user has an existing basic_info trait object
216222
const exists = await this.onCheckUserTrait('basic_info');
217223
if (exists) {

0 commit comments

Comments
 (0)