• Zach Pomerantz's avatar
    perf(swap): initialize swap inputs from url (#2402) · 8de6bb6d
    Zach Pomerantz authored
    * fix(swap): use undefined as initial currencyId state
    
    Null should be used for a selection state, not an unknown state. undefined may signify that a currency was passed in the URL but not yet parsed.
    
    * perf(swap): initialize swap with url
    
    Initializes SwapState with URL parameters so that currency input may be rendered on the first frame.
    
    * test(swap): update hooks tests
    
    * test: fix casing
    
    * fix: check nullish to allow eg 0
    8de6bb6d
Name
Last commit
Last update
.github Loading commit data...
cypress Loading commit data...
public Loading commit data...
src Loading commit data...
.env Loading commit data...
.env.production Loading commit data...
.eslintrc.json Loading commit data...
.gitignore Loading commit data...
.nvmrc Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
.yarnrc Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
babel-plugin-macros.config.js Loading commit data...
codegen.yml Loading commit data...
custom-test-env.js Loading commit data...
cypress.json Loading commit data...
lingui.config.ts Loading commit data...
package.json Loading commit data...
tsconfig.json Loading commit data...
yarn.lock Loading commit data...