Skip to content

Commit

Permalink
fix: break error text in transaction screen (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight authored Aug 29, 2024
1 parent 32a2d53 commit d5c61de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-tables-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

Fix text of error not breaking line on transaction screen
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ const ErrorHeader = ({ errors }: { errors?: GroupedErrors }) => {
<Alert status="error" css={styles.alert} aria-label="Transaction Error">
<Alert.Description as="div">
{errorMessages.map((message) => (
<Box key={message}>{message}</Box>
<Box
key={message}
css={{
wordBreak: 'break-word',
}}
>
{message}
</Box>
))}
</Alert.Description>
</Alert>
Expand Down

0 comments on commit d5c61de

Please sign in to comment.