Skip to content

Commit

Permalink
[fix] Member e-mail format
Browse files Browse the repository at this point in the history
Signed-off-by: TechQuery <shiy2008@gmail.com>
  • Loading branch information
TechQuery committed Jan 4, 2025
1 parent b80163f commit fc39cc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions models/Personnel/Person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ export class PersonModel extends BiDataTable<Person>() {

normalize({
id,
fields: { email, website, github, ...fields },
fields: { website, github, ...fields },
}: TableRecord<Person>) {
return {
...fields,
id: id!,
email: (email as TableCellLink)?.link,
website: (website as TableCellLink)?.link,
github: (github as TableCellLink)?.link,
};
Expand Down
2 changes: 1 addition & 1 deletion pages/member/[name].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default class PersonDetailPage extends Component<PersonDetailPageProps> {
)}
<li>🗺 {city as string}</li>
<li>
📬 <a href={email as string}>{(email as string)?.split(':')[1]}</a>
📬 <a href={`mailto:${email}`}>{email as string}</a>
</li>
<li>
🖥{' '}
Expand Down

0 comments on commit fc39cc8

Please sign in to comment.