mirror of
https://github.com/mue/mue.git
synced 2026-07-24 01:07:23 +02:00
fix things
This commit is contained in:
@@ -22,7 +22,11 @@ export default class Quote extends React.PureComponent {
|
||||
}
|
||||
|
||||
getQuotePack() {
|
||||
const quotePack = JSON.parse(localStorage.getItem('quote_packs'));
|
||||
let quotePack = localStorage.getItem('quote_packs');
|
||||
console.log(quotePack)
|
||||
if (quotePack === 'undefined') return this.doOffline();
|
||||
quotePack = JSON.parse(quotePack);
|
||||
|
||||
if (quotePack) {
|
||||
const data = quotePack[Math.floor(Math.random() * quotePack.length)];
|
||||
return this.setState({
|
||||
|
||||
Reference in New Issue
Block a user