Skip to content

Commit

Permalink
removed leading @ for autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Aug 29, 2018
1 parent 360214b commit c70e19e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/assets/onepager/js/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ $(document).ready(function() {
var isSendingETH = (tokenAddress == '0x0' || tokenAddress == '0x0000000000000000000000000000000000000000');
var tokenDetails = tokenAddressToDetails(tokenAddress);
var tokenName = 'ETH';
var weiConvert = Math.pow(10, 18);

if (!isSendingETH) {
tokenName = tokenDetails.name;
Expand Down Expand Up @@ -154,7 +153,7 @@ function sendTip(email, github_url, from_name, username, amountInEth, comments_p
if (username.indexOf('@') == -1) {
username = '@' + username;
}
var _disableDeveloperTip = true;

var gas_money = parseInt(Math.pow(10, (9 + 5)) * ((defaultGasPrice * 1.001) / Math.pow(10, 9)));
var isSendingETH = (tokenAddress == '0x0' || tokenAddress == '0x0000000000000000000000000000000000000000');
var tokenDetails = tokenAddressToDetails(tokenAddress);
Expand All @@ -170,7 +169,6 @@ function sendTip(email, github_url, from_name, username, amountInEth, comments_p
var amountInWei = amountInEth * 1.0 * weiConvert;
// validation
var hasEmail = email != '';
var hasUsername = username != '';

// validation
if (hasEmail && !validateEmail(email)) {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/v2/js/user-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $(function() {
data: function(params) {

let query = {
term: params.term
term: params.term[0] === '@' ? params.term.slice(1) : params.term
};

return query;
Expand Down

0 comments on commit c70e19e

Please sign in to comment.