Display only know notification types

This commit is contained in:
Alex Gleason
2022-11-01 13:16:25 -05:00
parent 3430af668b
commit 7efb5729bd
3 changed files with 15 additions and 10 deletions

View File

@ -268,7 +268,7 @@ const Notification: React.FC<INotificaton> = (props) => {
};
const renderContent = () => {
switch (type) {
switch (type as NotificationType) {
case 'follow':
case 'user_approved':
return account && typeof account === 'object' ? (