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) => {
|
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));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue