Skip to content

Commit

Permalink
Merge pull request #2533 from threefoldtech/development_update_balanc…
Browse files Browse the repository at this point in the history
…e_error

update error message for balance in pricing calculator
  • Loading branch information
amiraabouhadid authored Apr 4, 2024
2 parents 73188aa + 6d62e46 commit 1b715dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/src/utils/pricing_calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const hruRules = _applyRules([
min("Minimum allowed hdd storage size is 0 GB.", 0),
]);

export const balanceRules = _applyRules([min("Balance should be a positive integer.", 1)]);
export const balanceRules = _applyRules([min("Balance should be a positive integer and more than 1 TFT.", 1)]);

export function normalizePrice(price: number) {
return parseInt(String(price * 1000)) / 1000;
Expand Down

0 comments on commit 1b715dc

Please sign in to comment.