Skip to content

Commit

Permalink
temp: review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
acezard committed Jul 20, 2023
1 parent 03ce794 commit 7e40139
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/app/view/Lock/LockScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const LockView = ({
</Container>
)
}

export const LockScreen = (props: LockScreenProps): React.ReactNode => (
<ConditionalWrapper
condition={Platform.OS === 'ios'}
Expand Down
4 changes: 0 additions & 4 deletions src/components/webviews/CozyWebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
BiometryEmitter,
makeFlagshipMetadataInjection
} from '/app/domain/authentication/services/BiometryService'
import { setLang } from '/libs/intents/localMethods'

const log = Minilog('CozyWebView')

Expand Down Expand Up @@ -182,9 +181,6 @@ export const CozyWebView = ({
tryConsole(m, log, logId)
nativeIntent.tryEmit(m)

if (m.nativeEvent.data.includes('setLang'))
setLang(...JSON.parse(m.nativeEvent.data).args)

if (parentOnMessage) {
parentOnMessage(m)
}
Expand Down
1 change: 0 additions & 1 deletion src/libs/clientHelpers/magicLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const loginMagicLink = async (
twoFactorPasswordNeeded: true
}
} else if (e.reason?.error === ERROR_INVALID_MAGIC_CODE) {
// Why is this translated but not the other error message?
throw new Error(t('screens.login.invalidMagicCode'), e)
} else {
throw new Error('Error while calling loginMagicLink', e)
Expand Down

0 comments on commit 7e40139

Please sign in to comment.