Skip to content

Commit

Permalink
chore: fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahman-ledger committed Jan 8, 2025
1 parent 3af2ca8 commit 0a850af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/ledger-live-mobile/src/components/ConfirmationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ConfirmationModal extends PureComponent<Props> {
containerStyle={styles.confirmationButton}
type="secondary"
title={rejectButtonText || <Trans i18nKey="common.cancel" />}
testID={"confirmation-modal-cancel-button"}
testID="confirmation-modal-cancel-button"
onPress={onClose}
/>
)}
Expand All @@ -103,7 +103,7 @@ class ConfirmationModal extends PureComponent<Props> {
containerStyle={[styles.confirmationButton, styles.confirmationLastButton]}
type={alert ? "alert" : "primary"}
title={confirmButtonText || <Trans i18nKey="common.confirm" />}
testID={"confirmation-modal-confirm-button"}
testID="confirmation-modal-confirm-button"
onPress={onConfirm}
/>
</View>
Expand Down
2 changes: 1 addition & 1 deletion libs/ledger-live-common/src/e2e/speculos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export async function waitFor(text: string, maxAttempts: number = 10): Promise<s
const responseData = response.data;
const texts = responseData.events.map(event => event.text);

if (texts[0] && texts[0].includes(text)) {
if (texts?.[0]?.includes(text)) {
textFound = true;
return texts;
}
Expand Down

0 comments on commit 0a850af

Please sign in to comment.