This commit is contained in:
Akinwale Ariwodola 2019-09-11 12:36:41 +01:00
parent f008d95aa6
commit 0fe32e1a36
4 changed files with 2 additions and 9 deletions

View file

@ -44,7 +44,6 @@ import thunk from 'redux-thunk';
const globalExceptionHandler = (error, isFatal) => {
if (error && NativeModules.Firebase) {
console.log(error);
NativeModules.Firebase.logException(isFatal, error.message ? error.message : 'No message', JSON.stringify(error));
}
};

View file

@ -738,8 +738,6 @@ export default class ChannelCreator extends React.PureComponent {
uploadingImage,
} = this.state;
console.log(abandoningClaimIds);
return (
<View style={channelCreatorStyle.container}>
<UriBar

View file

@ -22,10 +22,6 @@ reducers[Constants.ACTION_UPDATE_CHANNEL_FORM_STATE] = (state, action) => {
const channelFormValues = Object.assign({}, state.channelFormValues);
const newChannelFormValues = Object.assign(channelFormValues, data);
console.log(channelFormValues);
console.log('***newvalues***');
console.log(newChannelFormValues);
return {
...state,
channelFormValues: newChannelFormValues,

View file

@ -299,8 +299,8 @@ export function uploadImageAsset(filePath, success, failure) {
};
const fileName = filePath.substring(filePath.lastIndexOf('/') + 1);
let fileExt = fileName.indexOf('.') > -1 ? fileName.substring(fileName.lastIndexOf('.') + 1) : 0;
if (!fileExt || fileExt.trim().length === 0) {
let fileExt = fileName.indexOf('.') > -1 ? fileName.substring(fileName.lastIndexOf('.') + 1).trim() : 0;
if (!fileExt) {
fileExt = 'jpg'; // default to jpg
}
const fileType = `image/${fileExt}`;