Skip to content

Commit

Permalink
fix: multi-line warning (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
barabanovro committed Aug 22, 2023
1 parent c794c3f commit 84c1736
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Swap/Toolbar/Caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const CaptionRow = styled(Row)<{ gap: number; shrink?: number }>`
flex-shrink: ${({ shrink }) => shrink ?? 1};
gap: ${({ gap }) => gap}em;
height: 100%;
max-width: 100%;
`

// TODO (tina): consolidate this and Expando icon
Expand Down
2 changes: 1 addition & 1 deletion src/components/Swap/Toolbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ToolbarRow = styled(Row)<{ isExpandable?: true }>`
cursor: ${({ isExpandable }) => isExpandable && 'pointer'};
flex-wrap: nowrap;
gap: 0.5em;
height: ${COLLAPSED_TOOLBAR_HEIGHT_EM}em;
min-height: ${COLLAPSED_TOOLBAR_HEIGHT_EM}em;
padding: 0.75em;
`

Expand Down
7 changes: 6 additions & 1 deletion src/state/routing/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ export const routing = createApi({
return { data: quoteResult }
} catch (error: any) {
console.error(`GetQuote failed on routing API: ${error?.message ?? error?.detail ?? error}`)
return { error: { status: 'CUSTOM_ERROR', error: error?.message ?? error?.detail ?? error } }
return {
error: {
status: 'CUSTOM_ERROR',
error: error?.detail && error.detail.length > 0 ? error.detail : error?.message ?? error,
},
}
}
},
keepUnusedDataFor: ms`10s`,
Expand Down

1 comment on commit 84c1736

@vercel
Copy link

@vercel vercel bot commented on 84c1736 Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wido-widget – ./

wido-widget-wido.vercel.app
wido-widget-git-main-wido.vercel.app
wido-widget.vercel.app

Please sign in to comment.