forked from e-mission/e-mission-phone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix backwards compat on retrieved configs
The fix is in getConfig(), lines 257 and 265 - _backwardsCompatSurveyFill needed to be applied there. But while I was here, something else I noticed is that these functions mutate the config object parameter, which means they are not pure functions. For best practice, I changed them so they return a new object with the change rather than mutating their inputs. While I was doing that, I applied the AppConfig type definition we have declared in types/appConfigTypes.ts. And I cleaned up the log statements in readConfigFromServer()
- Loading branch information
Showing
1 changed file
with
30 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters