Russell-Pollari / stripe2qbo

Import your Stripe transactions to Quick Books Online
MIT License
2 stars 1 forks source link

Remove redudant state from sync slice #65

Closed Russell-Pollari closed 1 year ago

Russell-Pollari commented 1 year ago

In the client reduc store, we have isSyncing and status as statue. Status is an empty string when isSyncing === false. All the information we need is in status.

We also have syncingTransactionIds which, when empty, means no syncing.

Is sync status adding any extra value, now that we show the sync status of each transaction? We can probably derive the status from the number of transactions.

Syncing {N} transaction{N> 1 && s}

There is also an "import transaction status" but that should be replaced by it's own independent status/loading like state