Bug/general fixes (#450)

* Fix asset link

* remove unused var

* fix no meal-plan returned

* cleanup redundant code

* Fix dates off in UI

* quick set dark/light mode

* user image fixes

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-05-31 18:44:20 -08:00
committed by GitHub
parent 785ab184af
commit 22d9309112
16 changed files with 218 additions and 16352 deletions

View File

@@ -6,10 +6,10 @@ import { store } from "@/store";
export const utils = {
recipe: recipe,
generateUniqueKey(item, index) {
const uniqueKey = `${item}-${index}`;
return uniqueKey;
return `${item}-${index}`;
},
getDateAsPythonDate(dateObject) {
if (!dateObject) return null;
const month = dateObject.getMonth() + 1;
const day = dateObject.getDate();
const year = dateObject.getFullYear();