Skip to content

Commit

Permalink
Merge branch 'master' into @chris/e2e-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
derHowie authored Sep 18, 2024
2 parents 4a646f7 + 394cef3 commit fc230dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "browser-extension",
"license": "GPL-3.0-only",
"version": "1.5.39",
"version": "1.5.40",
"scripts": {
"//enable dev mode": "",
"devmode:on": "sed -i'' -e 's/IS_DEV.*/IS_DEV=true/g' .env",
Expand Down
10 changes: 5 additions & 5 deletions src/entries/popup/hooks/swap/useSwapQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export const useSwapQuote = ({
);

const quotesParams: QuoteParams | undefined = useMemo(() => {
const paramsReady =
assetToSell &&
assetToBuy &&
(independentField === 'buyField'
const independentValue =
independentField === 'buyField'
? Number(assetToBuyValue)
: Number(assetToSellValue));
: Number(assetToSellValue);
const paramsReady =
assetToSell && assetToBuy && typeof independentValue === 'number';
if (!paramsReady) return undefined;

return {
Expand Down
2 changes: 1 addition & 1 deletion static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"notifications"
],
"short_name": "Rainbow",
"version": "1.5.39",
"version": "1.5.40",
"web_accessible_resources": [
{
"matches": [
Expand Down

0 comments on commit fc230dc

Please sign in to comment.