HomePhabricator

[Cashtab] Add parseInvalidSettingsForMigration function

Description

[Cashtab] Add parseInvalidSettingsForMigration function

Summary: Related to T2506. Function looks at the settings in the localStorage obj, determines if there is a missing parameter, then adds the default setting for only that parameter before restesting isValidCashtabSettings.

Test Plan:
Ensure that at least one setting is not default
in Ticker.js, create a testSetting and set its value to be either true or false
On save, refresh and check the application's memory in devtools
Existing settings should maintain their user defined values, while testSetting should be set to the default value

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D11740

Details

Provenance
kieran709Authored on Jul 12 2022, 15:45
kieran709Pushed on Jul 19 2022, 14:28
Reviewer
Restricted Project
Differential Revision
D11740: [Cashtab] Add parseInvalidSettingsForMigration function
Parents
rABC9a1274c77215: [avalanche][trivial] Fix bad wording in log
Branches
Unknown
Tags
Unknown