3 blocker phases
This commit is contained in:
@@ -15,9 +15,10 @@ export interface CancellationPolicyDisclosureProps {
|
||||
preview: CancellationPolicyPreview;
|
||||
}
|
||||
|
||||
/** Percent (integer) from a 0–1 fraction — a small display number, never money, so JS math is safe. */
|
||||
function toPercent(fraction: number): number {
|
||||
return Math.round(fraction * 100);
|
||||
/** Rounds an already-0–100 percent value for display — a small display number, never money, so JS math is
|
||||
* safe. Never re-multiply by 100: the server (and the mock) already serve this scale. */
|
||||
function toPercent(percent: number): number {
|
||||
return Math.round(percent);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user