Skip to content

Commit

Permalink
debug/krystal
Browse files Browse the repository at this point in the history
  • Loading branch information
namgold committed Aug 30, 2023
1 parent f327963 commit f5b212d
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/components/TransactionConfirmationModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,21 +282,19 @@ export function TransactionErrorContent({
>
{friendlyError(message)}
</Text>
{message !== friendlyError(message) && (
<AutoColumn justify="center" style={{ width: '100%' }}>
<Text
color={theme.primary}
fontSize="14px"
sx={{ cursor: `pointer` }}
onClick={() => setShowDetail(prev => !prev)}
>
{showDetail ? 'Show less' : 'Show more details'}
</Text>
{showDetail && (
<ErrorDetail>{typeof message === 'string' ? message : JSON.stringify(message)}</ErrorDetail>
)}
</AutoColumn>
)}
{/* {message !== friendlyError(message) && ( */}
<AutoColumn justify="center" style={{ width: '100%' }}>
<Text
color={theme.primary}
fontSize="14px"
sx={{ cursor: `pointer` }}
onClick={() => setShowDetail(prev => !prev)}
>
{showDetail ? 'Show less' : 'Show more details'}
</Text>
{showDetail && <ErrorDetail>{typeof message === 'string' ? message : JSON.stringify(message)}</ErrorDetail>}
</AutoColumn>
{/* )} */}
</AutoColumn>
</Section>
<BottomSection gap="12px">
Expand Down

0 comments on commit f5b212d

Please sign in to comment.