overview changes

Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
alexsparkes
2022-09-05 10:13:42 +01:00
parent 68783429d4
commit 517091cbda
5 changed files with 64 additions and 47 deletions

View File

@@ -359,13 +359,16 @@ export default class Quote extends PureComponent {
}
});
if (localStorage.getItem('quotechange') === 'refresh') {
if (localStorage.getItem('quotechange') === 'refresh' || (localStorage.getItem('quotechange')) === null ) {
this.setZoom();
this.getQuote();
localStorage.setItem('quoteStartTime', Date.now());
}
const test = localStorage.getItem('quotechange')
this.interval = setInterval(() => {
if (test !== null ) {
const targetTime = Number(
Number(localStorage.getItem('quoteStartTime')) +
Number(localStorage.getItem('quotechange')),
@@ -384,6 +387,7 @@ export default class Quote extends PureComponent {
this.getQuote();
}
}
}
});
}