Skip to content

Commit 00ac11a

Browse files
committed
use default export
1 parent 9da580c commit 00ac11a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • basic-projects/amazon-project/scripts/utils
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
export function formatCurrency(price){
1+
function formatCurrency(price){
22
return (price /100).toFixed(2);
3-
};
3+
};
4+
// default export, used when there's only one export in the file
5+
export default formatCurrency;

0 commit comments

Comments
 (0)