There was an error while loading. Please reload this page.
1 parent a12b582 commit aa9e800Copy full SHA for aa9e800
1 file changed
packages/neuron-ui/src/containers/Notification/index.tsx
@@ -157,9 +157,7 @@ export const NoticeContent = ({ dispatch }: React.PropsWithoutRef<StateWithDispa
157
<IconButton iconProps={{ iconName: 'Dismiss' }} onClick={onNotificationDismiss(n.timestamp)} />
158
</Stack>
159
<Text as="p">
160
- {notification.code
161
- ? t(`messages.codes.${notification.code}`, notification.meta)
162
- : notification.content || t('messages.unknown-error')}
+ {n.code ? t(`messages.codes.${n.code}`, n.meta) : n.content || t('messages.unknown-error')}
163
</Text>
164
165
)
0 commit comments