From d495bff07b50c47e842dc2c139922d56c87f5c9b Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Tue, 12 Jan 2021 15:38:21 -0800 Subject: [TMA 491 Frontend] Revamp onboarding (#173) * First commit, arrow excluded * Done from my side * Some small nitpicks * exclude tsconfig * Show profile screen after onboarding * Update string * Small fix * small cosmetic --- src/utils/common.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/utils') diff --git a/src/utils/common.ts b/src/utils/common.ts index a2f88e8b..f13181c1 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -47,3 +47,12 @@ export const getDateAge: ( return 'unknown'; } }; + +export const checkImageUploadStatus = (statusMap: object) => { + for (let [key, value] of Object.entries(statusMap)) { + if (value != 'Success') { + return false; + } + } + return true; +}; -- cgit v1.2.3-70-g09d2