Skip to content

Commit c70e19e

Browse files
committed
removed leading @ for autocomplete
1 parent 360214b commit c70e19e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/assets/onepager/js/send.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ $(document).ready(function() {
8383
var isSendingETH = (tokenAddress == '0x0' || tokenAddress == '0x0000000000000000000000000000000000000000');
8484
var tokenDetails = tokenAddressToDetails(tokenAddress);
8585
var tokenName = 'ETH';
86-
var weiConvert = Math.pow(10, 18);
8786

8887
if (!isSendingETH) {
8988
tokenName = tokenDetails.name;
@@ -154,7 +153,7 @@ function sendTip(email, github_url, from_name, username, amountInEth, comments_p
154153
if (username.indexOf('@') == -1) {
155154
username = '@' + username;
156155
}
157-
var _disableDeveloperTip = true;
156+
158157
var gas_money = parseInt(Math.pow(10, (9 + 5)) * ((defaultGasPrice * 1.001) / Math.pow(10, 9)));
159158
var isSendingETH = (tokenAddress == '0x0' || tokenAddress == '0x0000000000000000000000000000000000000000');
160159
var tokenDetails = tokenAddressToDetails(tokenAddress);
@@ -170,7 +169,6 @@ function sendTip(email, github_url, from_name, username, amountInEth, comments_p
170169
var amountInWei = amountInEth * 1.0 * weiConvert;
171170
// validation
172171
var hasEmail = email != '';
173-
var hasUsername = username != '';
174172

175173
// validation
176174
if (hasEmail && !validateEmail(email)) {

app/assets/v2/js/user-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $(function() {
77
data: function(params) {
88

99
let query = {
10-
term: params.term
10+
term: params.term[0] === '@' ? params.term.slice(1) : params.term
1111
};
1212

1313
return query;

0 commit comments

Comments
 (0)