Skip to content

Commit

Permalink
fix: code stytle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barttom committed Feb 13, 2024
1 parent 1880215 commit 3384fc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useSubStep/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type UseSubStep<TProps extends SubStepProps> = {
/** array of components that will become sub steps */
bodyContent: Array<ComponentType<SubStepProps & TProps>>;

/** called on last sub step */
/** called on last sub step */
onFinished: () => void;

/** index of initial sub step to display */
Expand Down
2 changes: 1 addition & 1 deletion src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default {
continue: 'Continuar',
firstName: 'Nombre',
lastName: 'Apellidos',
phone: 'teléfono',
phone: 'Teléfono',
phoneNumber: 'Número de teléfono',
phoneNumberPlaceholder: '(xxx) xxx-xxxx',
email: 'Email',
Expand Down
5 changes: 1 addition & 4 deletions src/libs/ErrorUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ type OnyxDataWithErrors = {
};

function getLatestErrorMessage<TOnyxData extends OnyxDataWithErrors>(onyxData: TOnyxData | null): Localize.MaybePhraseKey {
if (!onyxData) {
return '';
}
const errors = onyxData.errors ?? {};
const errors = onyxData?.errors ?? {};

if (Object.keys(errors).length === 0) {
return '';
Expand Down

0 comments on commit 3384fc7

Please sign in to comment.