()
| 10 | const getSavedCount = () => parseCount(sessionStorage.getItem(SAVED_COUNT_KEY)); |
| 11 | |
| 12 | export const incrementCurrentCount = () => { |
| 13 | const newCount = getCurrentCount() + 1; |
| 14 | sessionStorage.setItem(CURRENT_COUNT_KEY, newCount.toString()); |
| 15 | }; |
| 16 | |
| 17 | /** |
| 18 | * Saves the current count so we can compare it later. |
no test coverage detected