mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
components/app: move lastErrorID declaration down
Move it right before App, rather than drown in-between unrelated functions.
This commit is contained in:
parent
dc398baa3b
commit
fbc42b6dab
1 changed files with 2 additions and 2 deletions
|
@ -143,8 +143,6 @@ function receiptFromMessage(msg) {
|
|||
return { time: msg.tags.time };
|
||||
}
|
||||
|
||||
let lastErrorID = 0;
|
||||
|
||||
function getReceipt(stored, type) {
|
||||
if (!stored || !stored.receipts) {
|
||||
return null;
|
||||
|
@ -170,6 +168,8 @@ function getLatestReceipt(bufferStore, server, type) {
|
|||
return last;
|
||||
}
|
||||
|
||||
let lastErrorID = 0;
|
||||
|
||||
export default class App extends Component {
|
||||
state = {
|
||||
...State.create(),
|
||||
|
|
Loading…
Reference in a new issue