Skip to content

Commit

Permalink
Update dollar value
Browse files Browse the repository at this point in the history
  • Loading branch information
cablej committed Oct 27, 2024
1 parent 83ccf11 commit e99ab17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ module.exports.reports = async (event) => {
const admin = await isAdmin(event);
body = JSON.parse(event.body);
state = 'accepted';
if (body.state) state = body.state;
if (body.state && admin) state = body.state;
return {
statusCode: 200,
body: JSON.stringify({
Expand Down
6 changes: 3 additions & 3 deletions docs/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ let btcTotal_;

var numAnim = new countUp.CountUp('count', ransomTotal, {
prefix: '$',
decimalPlaces: 2
decimalPlaces: 0
});

numAnim.update(279067541.09);
numAnim.update(1016519907);

toggleDollar = () => {
dollarDisplay = !dollarDisplay;
numAnim = new countUp.CountUp('count', ransomTotal, {
prefix: dollarDisplay ? '$' : '₿',
decimalPlaces: 2
decimalPlaces: 0
});
if (dollarDisplay) {
numAnim.update(usdTotal_);
Expand Down

0 comments on commit e99ab17

Please sign in to comment.