diff --git a/web/satellite/src/types/payments.ts b/web/satellite/src/types/payments.ts index cde4ecd78..4597d19f2 100644 --- a/web/satellite/src/types/payments.ts +++ b/web/satellite/src/types/payments.ts @@ -151,7 +151,7 @@ export interface PaymentsApi { export class AccountBalance { constructor( public freeCredits: number = 0, - // STORJ token balance from storjscan. + // STORJ token balance (in dollars) from storjscan. private _coins: string = '0', // STORJ balance (in cents) from stripe. This may include the following. // 1. legacy Coinpayments deposit. @@ -177,8 +177,9 @@ export class AccountBalance { return formatPrice(this._coins); } + // Returns sum of storjscan and legacy (stripe) balances in cents. public get sum(): number { - return this.credits + this.coins; + return this.credits + (this.coins * 100); } public hasCredits(): boolean {