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
src
index.js
page/channelCreator
redux/reducers
utils

View file

@ -44,7 +44,6 @@ import thunk from 'redux-thunk';
const globalExceptionHandler = (error, isFatal) => { const globalExceptionHandler = (error, isFatal) => {
if (error && NativeModules.Firebase) { if (error && NativeModules.Firebase) {
console.log(error);
NativeModules.Firebase.logException(isFatal, error.message ? error.message : 'No message', JSON.stringify(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, uploadingImage,
} = this.state; } = this.state;
console.log(abandoningClaimIds);
return ( return (
<View style={channelCreatorStyle.container}> <View style={channelCreatorStyle.container}>
<UriBar <UriBar

View file

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

View file

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