• 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
..
abis Loading commit data...
assets Loading commit data...
components Loading commit data...
connectors Loading commit data...
constants Loading commit data...
hooks Loading commit data...
locales Loading commit data...
pages Loading commit data...
state Loading commit data...
theme Loading commit data...
types Loading commit data...
utils Loading commit data...
i18n.tsx Loading commit data...
index.tsx Loading commit data...
polyfills.ts Loading commit data...
react-app-env.d.ts Loading commit data...
service-worker.ts Loading commit data...
serviceWorkerRegistration.ts Loading commit data...
setupTests.ts Loading commit data...
test-utils.tsx Loading commit data...