Fix a bunch of type errors and add a type-check to the github workflows (#837)
* Add yarn type-check * Rename to yarn typecheck * Fix a collection of type errors * Add typecheck to automated tests * add `dist` to exluded folders tsconfig --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
This commit is contained in:
@@ -70,7 +70,9 @@ export function UserInfoText({
|
||||
numberOfLines={1}
|
||||
href={`/profile/${profile.handle}`}
|
||||
text={`${prefix || ''}${sanitizeDisplayName(
|
||||
profile[attr] || profile.handle,
|
||||
typeof profile[attr] === 'string' && profile[attr]
|
||||
? (profile[attr] as string)
|
||||
: profile.handle,
|
||||
)}`}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user