aboutsummaryrefslogtreecommitdiff
path: root/src/utils/common.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-13 18:00:06 -0400
committerGitHub <noreply@github.com>2021-05-13 18:00:06 -0400
commite6f046cb0fd9abbfc1bfff6f3294a1ae25a91d6c (patch)
treecbfb5ca1678e48f1b3be0b7a1512ee33bab2ea91 /src/utils/common.ts
parent848afa989c2a0c324b65778dc05e03b7856f62c3 (diff)
parent1e948b556fd53c02d7462576b183cdd6c4c793bb (diff)
Merge pull request #422 from TaggiD-Inc/revert-416-plusSignForNewUsers
Revert "[TMA-844] Plus sign for profile and header in profile, ability to add on the sc…"
Diffstat (limited to 'src/utils/common.ts')
-rw-r--r--src/utils/common.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/utils/common.ts b/src/utils/common.ts
index 95e77f64..ce4ab7d1 100644
--- a/src/utils/common.ts
+++ b/src/utils/common.ts
@@ -180,20 +180,3 @@ const _crestIcon = (university: UniversityType) => {
return require('../assets/images/bwbadges.png');
}
};
-
-export const validateImageLink = async (url: string | undefined) => {
- if (!url) {
- return false;
- }
- return fetch(url)
- .then((res) => {
- if (res.status === 200) {
- return true;
- } else {
- return false;
- }
- })
- .catch((_) => {
- return false;
- });
-};