Skip to content

Commit

Permalink
release alpha 24
Browse files Browse the repository at this point in the history
  • Loading branch information
toddkao committed Oct 30, 2024
1 parent 3b61d75 commit 4b4b618
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"viem": "^2.16.4",
"wagmi": "^2.5.7",
"widgetv1": "npm:@skip-go/widget@^2.5.2",
"widgetv2": "npm:@skip-go/widget@^3.0.0-beta.9",
"widgetv2": "npm:@skip-go/widget@^3.0.0-alpha.24",
"zod": "^3.22.4",
"zustand": "^4.5.0"
},
Expand Down
8 changes: 6 additions & 2 deletions src/hooks/useURLQueryParams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ export const useURLQueryParams = () => {
const [amountInQP] = useQueryState("amount_in");
const [amountOutQP] = useQueryState("amount_out");

if (!srcChainQP && !srcAssetQP && !destChainQP && !destAssetQP && !amountInQP && !amountOutQP) {
return;
}

return {
srcChainID: srcChainQP ?? undefined,
srcChainId: srcChainQP ?? undefined,
srcAssetDenom: srcAssetQP ?? undefined,
destChainID: destChainQP ?? undefined,
destChainId: destChainQP ?? undefined,
destAssetDenom: destAssetQP ?? undefined,
amountIn: amountInQP ? Number(amountInQP) : undefined,
amountOut: amountOutQP ? Number(amountOutQP) : undefined,
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default function Home() {
theme={theme === "dark" ? defaultTheme : lightTheme}
endpointOptions={endpointOptions}
apiURL={apiURL}
defaultRoute={defaultRoute}
/>
</div>
) : (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export default function WidgetPage() {
<SwapWidgetWithoutProviders
className=""
defaultRoute={{
srcChainID: defaultRoute?.srcChainID,
srcChainID: defaultRoute?.srcChainId,
srcAssetDenom: defaultRoute?.srcAssetDenom,
destChainID: defaultRoute?.destChainID,
destChainID: defaultRoute?.destChainId,
destAssetDenom: defaultRoute?.destAssetDenom,
amountIn: Number(defaultRoute?.amountIn),
amountOut: Number(defaultRoute?.amountOut),
Expand Down

0 comments on commit 4b4b618

Please sign in to comment.