API & Client - update API error messages to remove i18n workarounds
This commit is contained in:
@ -356,7 +356,12 @@
|
||||
} else {
|
||||
if (withGpx.value) {
|
||||
if (!gpxFile) {
|
||||
throw new Error('No file provided !!')
|
||||
const errorMessage = 'workouts.NO_FILE_PROVIDED'
|
||||
store.commit(
|
||||
ROOT_STORE.MUTATIONS.SET_ERROR_MESSAGES,
|
||||
errorMessage
|
||||
)
|
||||
return
|
||||
}
|
||||
payload.file = gpxFile
|
||||
store.dispatch(WORKOUTS_STORE.ACTIONS.ADD_WORKOUT, payload)
|
||||
|
Reference in New Issue
Block a user