cleanup
This commit is contained in:
parent
f008d95aa6
commit
0fe32e1a36
4 changed files with 2 additions and 9 deletions
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
|
|
@ -738,8 +738,6 @@ export default class ChannelCreator extends React.PureComponent {
|
|||
uploadingImage,
|
||||
} = this.state;
|
||||
|
||||
console.log(abandoningClaimIds);
|
||||
|
||||
return (
|
||||
<View style={channelCreatorStyle.container}>
|
||||
<UriBar
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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}`;
|
||||
|
|
Loading…
Reference in a new issue