Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Symbol view for typed sign #2027

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ export const TransactionConfirmation = observer(
)}
</Spacer>
<Button
disabled={!fee?.expectedFee?.isPositive() && !disabled}
disabled={
!fee?.expectedFee?.isPositive() && !disabled && !transactionSumError
}
variant={ButtonVariant.contained}
i18n={I18N.transactionConfirmationSend}
onPress={onConfirmTransaction}
Expand Down
7 changes: 2 additions & 5 deletions src/components/typed-data-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {ScrollView} from 'react-native-gesture-handler';
import {Renderable} from 'react-native-json-tree';

import {Color} from '@app/colors';
import {app} from '@app/contexts';
import {createTheme} from '@app/helpers';
import {useLayoutAnimation} from '@app/hooks/use-layout-animation';
import {I18N} from '@app/i18n';
Expand Down Expand Up @@ -83,11 +84,7 @@ export function TypedDataViewer({data, style}: TypedDataViewerProps) {
</DataView>
<DataView i18n={I18N.transactionInfoCryptocurrency}>
<Text variant={TextVariant.t11} color={Color.textBase1}>
<Text i18n={I18N.transactionConfirmationIslamicCoin} />{' '}
<Text
color={Color.textBase2}
i18n={I18N.transactionConfirmationISLM}
/>
{`${app.provider.coinName} ${app.provider.denom}`}
</Text>
</DataView>
{amount?.isPositive() && (
Expand Down
Loading