Skip to content

Commit

Permalink
fix: buying proper bytes amount
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 1, 2024
1 parent 9fd463c commit 4dcc4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/[network]/(account)/ram/buy/state.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class BuyRAMState {
);

public bytesToBuy: number = $derived(
this.bytes || !this.bytesValue.value || !this.pricePerKB.value
this.format === 'units' || !this.bytesValue.value || !this.pricePerKB.value
? this.bytes || 0
: Number(((this.bytesValue.value / this.pricePerKB.value) * 1000).toFixed(0))
);
Expand Down

0 comments on commit 4dcc4fa

Please sign in to comment.