The ressource quantity is updated every second where the remaining time is updated every 10 seconds (block time).
It can be fix to be consistent between the 2 information.
Also, when the resource reaches 0, it optimistically keep decreasing until a new block time is set (every 10 seconds), add a simple condition to check display a positive quantity or zero could fix it.
The ressource quantity is updated every second where the remaining time is updated every 10 seconds (block time).
It can be fix to be consistent between the 2 information.
Also, when the resource reaches 0, it optimistically keep decreasing until a new block time is set (every 10 seconds), add a simple condition to check display a positive quantity or zero could fix it.