Skip to content

Commit

Permalink
fix(mobile): fix bounce flag on send screen (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokin0andrey authored Apr 24, 2024
1 parent d2aba5d commit ea04249
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ const AddressInputComponent: FC<Props> = (props) => {

const preparedAddress =
recipient && (recipient.name || recipient.domain)
? Address.parse(recipient.address, { bounceable: false }).toShort()
? Address.parse(recipient.address, {
bounceable: Address.isBounceable(recipient.address),
}).toShort()
: '';

const isFirstRender = useRef(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const InputNumber = styled.TextInput.attrs({
})`
font-family: ${({ theme }) => theme.font.regular};
font-size: ${ns(16)}px;
line-height: ${ns(24)}px;
color: ${({ theme }) => theme.colors.foregroundSecondary};
margin: 0;
text-align: right;
Expand All @@ -32,6 +31,13 @@ export const InputNumber = styled.TextInput.attrs({
${isAndroid ? 'text-align-vertical: top;' : ''}
z-index: 3;
position: absolute;
${() => {
if (isAndroid) {
return `
line-height: ${ns(24)}px;
`;
}
}}
`;

export const ButtonWrap = styled.View`
Expand Down

0 comments on commit ea04249

Please sign in to comment.