mirror of
https://github.com/mue/mue.git
synced 2026-07-17 05:54:14 +02:00
fix: modal ui fixes, search and quote widget fix
This commit is contained in:
@@ -90,9 +90,9 @@ export default class Quote extends PureComponent {
|
||||
}
|
||||
|
||||
// pick random
|
||||
customQuote = customQuote[Math.floor(Math.random() * customQuote.length)];
|
||||
customQuote = customQuote ? customQuote[Math.floor(Math.random() * customQuote.length)] : null;
|
||||
|
||||
if (customQuote !== '' && customQuote !== 'undefined' && customQuote !== ['']) {
|
||||
if (customQuote && customQuote !== '' && customQuote !== 'undefined' && customQuote !== ['']) {
|
||||
return this.setState({
|
||||
quote: '"' + customQuote.quote + '"',
|
||||
author: customQuote.author,
|
||||
|
||||
@@ -114,7 +114,7 @@ export default class Search extends PureComponent {
|
||||
autocompleteQuery,
|
||||
autocompleteCallback,
|
||||
microphone,
|
||||
currentSearch: info.name
|
||||
currentSearch: info ? info.name : 'Custom'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user