Skip to content

Commit

Permalink
LUN-400: Resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ztefanie committed Oct 5, 2022
1 parent ea80021 commit 807f8ba
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { HintText } from '../../components/text/Hint'
import { ARTICLES, BUTTONS_THEME, getArticleWithLabel } from '../../constants/data'
import { Images } from '../../constants/endpoints'
import { RoutesParams } from '../../navigation/NavigationTypes'
import AsyncStorage from '../../services/AsyncStorage'
import { addUserDocument, getNextUserVocabularyId, incrementNextUserVocabularyId } from '../../services/AsyncStorage'
import { getLabels } from '../../services/helpers'
import { reportError } from '../../services/sentry'
import ImageSelectionOverlay from './components/ImageSelectionOverlay'
Expand Down Expand Up @@ -85,8 +85,8 @@ const UserVocabularyProcessScreen = ({ navigation }: UserVocabularyProcessScreen
return
}

await AsyncStorage.getNextUserVocabularyId().then(id => {
AsyncStorage.incrementNextUserVocabularyId()
await getNextUserVocabularyId().then(id => {
incrementNextUserVocabularyId()
.then(() => {
const imagePaths: Images = []
images.forEach(async (image, index) => {
Expand All @@ -95,7 +95,7 @@ const UserVocabularyProcessScreen = ({ navigation }: UserVocabularyProcessScreen
await writeFile(path, image, 'utf8')
})

AsyncStorage.addUserDocument({
addUserDocument({
id,
word,
article: ARTICLES[articleId],
Expand Down

0 comments on commit 807f8ba

Please sign in to comment.