Fixed favourite emotes array being undefined

https://cdn.discordapp.com/attachments/400734824740028419/438847211325882370/unknown.png
This commit is contained in:
Samuel Elliott 2018-04-26 00:47:42 +01:00
parent 34ebab7c21
commit 22fbb7b5bd
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export default new class Settings {
CssEditor.setState(scss, css, css_editor_files, scss_error);
CssEditor.editor_bounds = css_editor_bounds || {};
EmoteModule.favourite_emotes = favourite_emotes;
EmoteModule.favourite_emotes = favourite_emotes || [];
} catch (err) {
// There was an error loading settings
// This probably means that the user doesn't have any settings yet