diff options
author | Aryan Goharzad <arrygoo@gmail.com> | 2023-01-20 14:43:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 13:43:28 -0600 |
commit | 06e41167d05a26befb14b9742f4fc4ef3833d35d (patch) | |
tree | 53b1dea4922903ca91775980b6cfb1f0adea05e3 /src/view/com/util/UserInfoText.tsx | |
parent | 2fce1637b4ae01667da8ceafaa07a6266ab88450 (diff) | |
download | voidsky-06e41167d05a26befb14b9742f4fc4ef3833d35d.tar.zst |
Lints some errors and warnings (#76)
Diffstat (limited to 'src/view/com/util/UserInfoText.tsx')
-rw-r--r-- | src/view/com/util/UserInfoText.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/util/UserInfoText.tsx b/src/view/com/util/UserInfoText.tsx index db6696a9b..5cdfd1345 100644 --- a/src/view/com/util/UserInfoText.tsx +++ b/src/view/com/util/UserInfoText.tsx @@ -40,11 +40,15 @@ export function UserInfoText({ let aborted = false store.profiles.getProfile(did).then( v => { - if (aborted) return + if (aborted) { + return + } setProfile(v.data) }, _err => { - if (aborted) return + if (aborted) { + return + } setFailed(true) }, ) |