Skip to content

Commit aa9e800

Browse files
committed
fix(neuron-ui): fix the repetition of notification
1 parent a12b582 commit aa9e800

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • packages/neuron-ui/src/containers/Notification

packages/neuron-ui/src/containers/Notification/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ export const NoticeContent = ({ dispatch }: React.PropsWithoutRef<StateWithDispa
157157
<IconButton iconProps={{ iconName: 'Dismiss' }} onClick={onNotificationDismiss(n.timestamp)} />
158158
</Stack>
159159
<Text as="p">
160-
{notification.code
161-
? t(`messages.codes.${notification.code}`, notification.meta)
162-
: notification.content || t('messages.unknown-error')}
160+
{n.code ? t(`messages.codes.${n.code}`, n.meta) : n.content || t('messages.unknown-error')}
163161
</Text>
164162
</Stack>
165163
)

0 commit comments

Comments
 (0)