mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
Set calories heading based on user preference
This commit is contained in:
@@ -175,6 +175,14 @@ export function convertEnergyToCalories(amount) {
|
||||
}
|
||||
}
|
||||
|
||||
export function energyHeading() {
|
||||
if (getUserPreference('use_kj')) {
|
||||
return 'Energy'
|
||||
} else {
|
||||
return 'Calories'
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Utility functions to use OpenAPIs generically
|
||||
* */
|
||||
|
||||
Reference in New Issue
Block a user