Skip to content

Commit

Permalink
fix(neuron-ui): fix the repetition of notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Sep 17, 2019
1 parent a12b582 commit aa9e800
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/neuron-ui/src/containers/Notification/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ export const NoticeContent = ({ dispatch }: React.PropsWithoutRef<StateWithDispa
<IconButton iconProps={{ iconName: 'Dismiss' }} onClick={onNotificationDismiss(n.timestamp)} />
</Stack>
<Text as="p">
{notification.code
? t(`messages.codes.${notification.code}`, notification.meta)
: notification.content || t('messages.unknown-error')}
{n.code ? t(`messages.codes.${n.code}`, n.meta) : n.content || t('messages.unknown-error')}
</Text>
</Stack>
)
Expand Down

0 comments on commit aa9e800

Please sign in to comment.