Skip to content

Commit

Permalink
Fix bad format for helium price
Browse files Browse the repository at this point in the history
  • Loading branch information
Akzuu committed Apr 16, 2024
1 parent 7844f52 commit 9153598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export const mapGasToName = (gas?: AvailableGasses): string => {
}
};

export const formatEurCentsToEur = (eurCents: number): number => eurCents / 100;
export const formatEurCentsToEur = (eurCents: number): number =>
parseFloat((eurCents / 100).toFixed(3));
export const formatEurToEurCents = (eur: number): number => eur * 100;

export const calculateGasConsumption = (
Expand Down

0 comments on commit 9153598

Please sign in to comment.