diff options
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; +}; |