Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Fix anonymous receiving
Browse files Browse the repository at this point in the history
Closes #111.

Not sure if there is a use case for anonymous anymore or not.

Also fixed bad quotation mark.
  • Loading branch information
mattbk committed Feb 7, 2016
1 parent 04a5fcb commit 132e0f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/v1/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@

Gratipay.users.getPublic(username, function(data) {
element.setAttribute('data-gratipay-readystatus', 'ready');
text('receiving', (data.receiving)? '$' + data.receiving : 'anonymously');
// If ~user versus team
text('receiving', (data.taking)? '$' + data.taking : '$' + data.receiving);
text('username', data.username);
text('my-tip-button', data.my_tip == 'self' ? 'You!' : (+data.my_tip > 0 ? data.my_tip : 'Gratipay')); // jshint ignore:line
text('goal', '$' + data.goal);
Expand Down
2 changes: 1 addition & 1 deletion test/gratipay.com/rummik/public.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"ngiving_to": 0,
"ntaking_from": 0,
"on": "gratipay",
"taking": 12.34,
"taking": "12.34",
"username": "rummik"
}

0 comments on commit 132e0f7

Please sign in to comment.