Can not set property to variable
vkubicki opened this issue · comments
Hi,
I am new to website coding, so this might not be an issue specific to styled-notification.
I create an error notification using:
const error_notification = window.createNotification({
closeOnClick: true,
displayCloseButton: false,
positionClass: 'nfc-top-right',
showDuration: 3500,
theme: 'error'
});
Then I call it with:
error_notification({
title: 'Unsuccesful login',
message: result.data.log
});
With result an object returned as json by the server and result.data.log a string. However, only the title is display, not the message. If I replace message with a string: message: "my message"
, the message is displayed.
Is this an issue with my code ?
Thank you
result.data.log was an array of strings...