diff --git a/src/ui/main.ts b/src/ui/main.ts index d7082ea..18fc80e 100644 --- a/src/ui/main.ts +++ b/src/ui/main.ts @@ -27,5 +27,8 @@ function fetchStateAndPopulateUi () { // Makes sure state is saved in _both_ URL and browser storage. saveState('state', initialState) uiState.updateScore(initialState) + } else { + const state = getState({}) + uiState.populateUiWithState(state) } }