lbry-desktop/ui/util/hosting.js
2022-06-01 18:06:59 -04:00

8 lines
274 B
JavaScript

export function convertGbToMbStr(gb) {
return String(Number(gb) * 1024);
}
export function isValidHostingAmount(amountString) {
const numberAmount = Number(amountString);
return amountString.length && ((numberAmount && String(numberAmount)) || numberAmount === 0);
}