diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2021-01-12 15:38:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 18:38:21 -0500 |
commit | d495bff07b50c47e842dc2c139922d56c87f5c9b (patch) | |
tree | c6f592fa72a6158981fef2feba1b3dca5ff6cc2a /src/utils/common.ts | |
parent | c758389ad2ebe98196d4618ec08dbf2b24d95bfa (diff) |
[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
Diffstat (limited to 'src/utils/common.ts')
-rw-r--r-- | src/utils/common.ts | 9 |
1 files changed, 9 insertions, 0 deletions
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; +}; |