Skip to content

Commit 2c8c8c3

Browse files
Merge pull request #874 from PermanentOrg/per-10160-admin-adjustments
PER-10160: Format negative storage amounts
2 parents 20cebec + 70e2e5a commit 2c8c8c3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

constants/master_en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@
595595
"billing": {
596596
"transfer": {
597597
"account_to_creditcard": "Refund",
598+
"admin_adjustment": "Adjustment applied by Permanent.org",
598599
"creditcard_to_account": "Purchase",
599600
"pledge_to_account": "Donation",
600601
"account_to_pledge": "Donation failed",

src/app/shared/pipes/filesize.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class FileSizePipe implements PipeTransform {
2424
} else {
2525
let unit = 0;
2626

27-
while (bytes >= 1024) {
27+
while (bytes >= 1024 || bytes <= -1024) {
2828
bytes /= 1024;
2929
unit += 1;
3030
}

0 commit comments

Comments
 (0)